how session will be expired?

Answer Posted / sanjay gajula

THERE IS A ELEMENT NAME CALLED "SESSION-TIMEOUT" IN THE
WEB.XML FILE OF APPLICATION SERVER USING THIS ELEMENT WE
CAN EXPLICITLY SET THE TIME FOR SESSION TO GET EXPIRED

EX;-
<SESSION-CONFIG>
<SESSION-TIMEOUT>30</SESSION-TIMEOUT>
</SESSION-CONFIG>

WE HAVE TO SET THIS IN THE WEB.XML FILE OF APPLICATION
SERVER[TOMCAT]

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object cloning in Java?

639


What is the difference between stored procedure & function?

551


In a container there are 5 components. I want to display all the component names, how will you do that?

1562


When will we prefer to use set and list in java and why?

550


Can we have more than one package statement in the source file?

645






What is the size of boolean variable?

578


What is the final keyword in java?

556


What is meant by design patterns?

588


Explain inheritance in java?

558


Can you make a constructor final in Java?

629


How dead lock situation occurs in java and how you can identify it?

547


How does the garbage collector works in java?

574


Why do we need data serialization?

546


What is the symbol for line break?

612


What is jar?

636