| Author |
need help with session time our
|
Rajini Kand
Greenhorn
Joined: Aug 05, 2008
Posts: 3
|
|
<session-config> <session-timeout>10</session-timeout> </session-config>
|
 |
Abhishek Asthana
Ranch Hand
Joined: Sep 08, 2004
Posts: 146
|
|
I love cryptic questions but this is a bit over the top I guess you would want to ASK the question also.
|
 |
Rajini Kand
Greenhorn
Joined: Aug 05, 2008
Posts: 3
|
|
sorry It got submitted before I even typed the question. My system just want to go ahead of me My mistake
|
 |
Rajini Kand
Greenhorn
Joined: Aug 05, 2008
Posts: 3
|
|
Here is the question <session-config> <session-timeout>10</session-timeout> </session-config> What really happens at the container side when the session is timed out? I a configure a sessiontimeout.jsp to be displayed. I want to know if what is the flow from session time out to display of jsp from the container perspective Is there a difference between session time out and session invalid? Does the container takes care of session time out or it has to be programatically done? Is it dependent on the application server? Thanks in advance
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
As a general statement, when the system notices that the session has been inactive for a period greater than the timeout (I dont know if the API requires this order. 1. container obtains synchronization lock on session 2. the session is marked as invalid 3. all listeners are notified 4. all references held in the session are set to null Now for the specific - here is the code from Tomcat 5 Thats what I love about open source software you can answer questions like this by looking at the code. Bill
|
Java Resources at www.wbrogden.com
|
 |
 |
|
|
subject: need help with session time our
|
|
|