• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help abt session timeout ?

 
Saurabh Agrawal
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends ,
Can anyone tell me :
" How can we set the session time out to be more than 1 hour in a servlet ?"
As i know , we have the following tag in web.xml
<session config>
<Session-timeout>{TIME IN MINUTES}</session-timeout>
</session-config>
But this does not work is the time specified is more than 30 minutes as the default session time out for TOMCAT is 30 minutes , so the session is automcatically timed out.
I want comment on it so as to support a long time out for my session ..
Thanks ,
Saurabh
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the servlet specification, you should be able to do that.
What makes you think it is not working as expected?
What do you get from the getMaxInactiveInterval() call on a session in this web application?
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic