This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Session timeout of Java application  RSS feed

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

<session-config>
<session-timeout>60</session-timeout>
</session-config>

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.

Regards.
 
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
The happiness of your life depends upon the quality of your thoughts -Marcus Aurelius ... think about this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!