aspose file tools*
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
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: 12825
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: need help with session time our