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 Sessions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android 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: 12761
    
    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
 
Similar Threads
maximum concurrent session in apache tomcat
Finding Whether a user is logged in or no
ASP
frames and pageContext
How to know the last visited user in webpage