wood burning stoves
The moose likes Tomcat and the fly likes Session timeout of Java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Session timeout of Java application" Watch "Session timeout of Java application" New topic

Session timeout of Java application

Meghna Bhardwaj
Ranch Hand

Joined: Jun 08, 2007
Posts: 109
Hi All,

I have a question about session timeout of a Java application. I have found out that it can be controlled using the Application Server which in my case is Tomcat 6.0. the web.xml file for tomcat has a section:


We want it set to 1hr so I have it at 60 above. My question is that if there is more than 1 application running on the same Tomcat server 6.0 all of them would have the session timeout altered to 1hr - am I right? If so is there another way to control session timeout of a Java application so that not all applications running on the same Tomcat have the session timeout changed as above?

I am not very familiar with session timeout issues, so would really appreciate it if someone can either point me to a good place to read up about it, or give very good explanation.

Many thanks.

Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Each application can (and should) have its own deployment descriptor (web.xml). There is a parent descriptor file in tomcat/conf.
The application specific ones override the parent for each application.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link: http://aspose.com/file-tools
subject: Session timeout of Java application
It's not a secret anymore!