wood burning stoves 2.0*
The moose likes Servlets and the fly likes need help with session time our Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "need help with session time our" Watch "need help with session time our" New topic

need help with session time our

Rajini Kand

Joined: Aug 05, 2008
Posts: 3
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

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

Joined: Aug 05, 2008
Posts: 3
Here is the question


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

Joined: Mar 22, 2000
Posts: 12675
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.


Java Resources at www.wbrogden.com
subject: need help with session time our
Similar Threads
session time out. Can't you make it longer? May be about ... a day?
Increase Session expiry limit
Interview question asked to me which I could not answer
Tomcat manager "Expire sessions" button
web.xml session parameters