File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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


Rajeev Iyer
Ranch Hand

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

Joined: Mar 22, 2000
Posts: 12761
Consulting the servlet API documentation we find this method in the HttpSession class:
setMaxInactiveInterval( int seconds );
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:

SCJP, blog
I agree. Here's the link:
subject: Sessions
Similar Threads
maximum concurrent session in apache tomcat
Finding Whether a user is logged in or no
frames and pageContext
How to know the last visited user in webpage