• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help with session time our

 
Rajini Kand
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<session-config>
<session-timeout>10</session-timeout>
</session-config>
 
Abhishek Asthana
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry It got submitted before I even typed the question.

My system just want to go ahead of me

My mistake
 
Rajini Kand
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13073
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic