This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes session-timeout doesn't work in JBoss - why not? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "session-timeout doesn Watch "session-timeout doesn New topic
Author

session-timeout doesn't work in JBoss - why not?

Steve Cohen
Greenhorn

Joined: Oct 21, 2004
Posts: 4
I am trying to get control of session timeout interval in a JBoss (3.2) application served under apache. In production this will be run in a two-server cluster with sticky sessions, but never mind that, I can't even get it to work unclustered.

Current web.xml defines <session-timeout>60</session_timeout>.
But we need to set it to 4 hours (240). However, I can't prove that the value in web.xml is even looked at by Jboss. If, as an experiment, I set <session-timeout>1</session_timeout> so that the session will time out after one minute, I wait for two minutes and find the session still is valid. It appears, then, that something is overriding the setting in web.xml? What might that be, and how can I configure the system so that the session-timeout value is respected?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
try setMaxInactiveInterval() in HttpSession.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session-timeout doesn't work in JBoss - why not?
 
Similar Threads
Expire
Session time out.
How to set session-Timeout for a App deployed on JBoss 4.3 EAP
Server Session Timeout
Default Session in Jboss