how session will be expired?
Answers were Sorted based on User's Feedback
There are two ways---
1)When we set session time out in WEB.xml then session will
be automatically expire if nothing is happening after given
time period
2)if we are using "session.invalidate" function then after
executing this function session will be expire.
| Is This Answer Correct ? | 33 Yes | 1 No |
Answer / laxmi
In addition to what is said above we can use
'session.invalidate' function or else after a predetermined
time the session gets killed automatically.
| Is This Answer Correct ? | 29 Yes | 2 No |
Answer / 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 |
Answer / madhuri
There are three ways ...
1)call setMaxInnactiveInterval()
we cal call the above mtd in two ways,i.e Programatically
Declaratively
Declaratively means through WEB.XML,by using session-timeout
we can close the session.
2)using session.Invalidate()
3)logout the session
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / shikha
When User Logout session will be expired automatically
| Is This Answer Correct ? | 15 Yes | 15 No |
What is the use of a conditional inclusion statement in Java ?
How many times finalize method will be invoked? Who invokes finalize() method in java?
What is an object?s lock? Give name of object?s that have locks?
What is a null point?
What is the purpose of encapsulation?
How can I debug the Java security exceptions and AccessControlExceptions?
How to split a string in java?
What’s the difference between unit, integration and functional testing?
What is xslt in java?
placement papaers of spring computing technology
0 Answers Spring Computing Technologies,
What is the difference between abstract class and interface1? What is an interface?
Can a static method be overridden in java?