File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes session time out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "session time out" Watch "session time out" New topic

session time out

Nijeesh Balan
Ranch Hand

Joined: Oct 09, 2000
Posts: 116
I have set the session time out interval to be 2 minutes in the Session Manager Service of the Console of IBM/Websphere.
1. when I try to read the session time out using getMaxInactiveInterval() I always get 1800secs (30min). How do I retreive the session time out interval?
2. Session never times out after 2 minutes.. Wehn I noticed in the log file, the time difference between two requests was more than 5 minutes.What could be the reason for session not being timed out?
Your inputs would be highly appreciated.
Thanks & Regards,

Thanks & Regards,<br />Nijeesh.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
It seems like the interval you set is not actually getting set for some reason. That's whay it's returning the default value of 30 minutes. You can try restarting the servlet engine.

So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: session time out
It's not a secret anymore!