This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "need help with session time our" Watch "need help with session time our" New topic
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: 12682
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need help with session time our
 
Similar Threads
Increase Session expiry limit
Interview question asked to me which I could not answer
web.xml session parameters
session time out. Can't you make it longer? May be about ... a day?
Tomcat manager "Expire sessions" button