Meaningless Drivel is fun!
The moose likes Servlets and the fly likes problem setting session timeout value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "problem setting session timeout value" Watch "problem setting session timeout value" New topic

problem setting session timeout value

M Das

Joined: Aug 13, 2011
Posts: 2
Hi friends,

Well i implemented a simple web app, and was trying to set the session-timeout to 30 minutes or whatever in web.xml in tomcat, but somehow the application gets 600 seconds as the value of session.getMaxInactiveInterval(). If i set by setMaxInactiveInterval(30) it takes 30 minutes, but otherwise it is always 600 seconds. Even if i change the value to something else in web.xml it does not matter!
If i know what are the possible places that session timeout property is set, i think i can resolve it. Please help me in this.

vinayak jog
Ranch Hand

Joined: Apr 01, 2011
Posts: 81

Did you restarted tomcat after every reset in web.xml ? or what ever configure file you are using for setting the time
I agree. Here's the link:
subject: problem setting session timeout value
jQuery in Action, 3rd edition