Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem setting session timeout value

 
M Das
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
MySQL Database Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you restarted tomcat after every reset in web.xml ? or what ever configure file you are using for setting the time
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic