aspose file tools*
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
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?