This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference in actual and specified timeout

 
ashok sashrith
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My application requires session timeout after 20 minutes and had an entry in the web.xml.

<session-config>
<session-timeout>20</session-timeout>
</session-config>

but the session timeout happens only sometimes after 25 minutes. can anyone explain why this much delay in session timeout?

Additional info.:
IBM Websphere Application Server 5.0
Windows 2000

Thanks,
Ashok
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You cannot expect timeout to occur at exactly 20 minutes after the previous request because the JVM may be busy doing something else. Having said that 5 minutes delay is too much. Check whether the server is busy processing some other request which may result in the timeout thread not getting CPU cycles.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We found the same thing in Websphere. The timeout value prevents the user from using the session, but the actual session does not get cleared for some time after. This is just the way it is, unfortunately
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by David O'Meara:
We found the same thing in Websphere. The timeout value prevents the user from using the session, but the actual session does not get cleared for some time after. This is just the way it is, unfortunately


If it prevents the user from using it after 20 minutes (and not 25 minutes)then it should be ok even if the other listener methods are invoked later.
 
ashok sashrith
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David, There is confusion over here. Could you little more elaborate on "The timeout value prevents the user from using the session, but the actual session does not get cleared for some time after".

Thanks,
Ashok
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic