aspose file tools*
The moose likes Servlets and the fly likes Sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Sessions" Watch "Sessions" New topic
Author

Sessions

Rajeev Iyer
Ranch Hand

Joined: Jun 19, 2002
Posts: 42
Hi...
Is it possible to change the time out value of sessions at runtime?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12805
    
    5
Consulting the servlet API documentation we find this method in the HttpSession class:
setMaxInactiveInterval( int seconds );
Bill
Kishore Dandu
Ranch Hand

Joined: Jul 10, 2001
Posts: 1934
In some app servers you can set the servler expiration time by setting the properties.
Like Weblogic:
weblogic.httpd.session.timeoutSecs=12000
weblogic.httpd.session.invalidationIntervalSecs=6000


Kishore
SCJP, blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sessions