File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Help abt session timeout ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Help abt session timeout ?" Watch "Help abt session timeout ?" New topic
Author

Help abt session timeout ?

Saurabh Agrawal
Ranch Hand

Joined: Oct 07, 2003
Posts: 244
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


Success is not doing extraordinary things but doing ordinary things extraordinarily well.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help abt session timeout ?