wood burning stoves*
The moose likes Servlets and the fly likes Session timeout - How to set for an application? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Session timeout - How to set for an application?" Watch "Session timeout - How to set for an application?" New topic
Author

Session timeout - How to set for an application?

Alamu Vinai
Greenhorn

Joined: Feb 01, 2001
Posts: 19
How can I set the session time out value for the entire application? I know how to do for a single session. But how to do for all sessions in any application? Should I modify the xml file?
Mark Simms
Ranch Hand

Joined: Jul 20, 2000
Posts: 36
The application-wide setting can be controlled in the deployement descriptor file: web.xml
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
Remember, there is usually a default web.xml and then one that applies to your application ...which can override the default settings.
Note: there is also a ServletConfig method for changing this setting dynamically.

Mark
Alamu Vinai
Greenhorn

Joined: Feb 01, 2001
Posts: 19
Thanks for the reply. Now I understand how to set session timeout for all sessions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session timeout - How to set for an application?
 
Similar Threads
Oracle Portlet Session
Cannot Find Bean in Scope Request
Global/Session variable in netbeans
Action class passing back parameters
struts