Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Help abt session timeout ?

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic