I have an implementation of javax.servlet.http.HttpSessionListener that should detect the invalid / timeout of a user session in a Struts project.
SessionDestroyed () never seems to be called, I can reproduce this by deleting my JSESSIONID and refreshing the page. I also found that leaving the browser open until the session time had the same effect.
The site runs on JBoss 4.2.3.GA with Java 1.5.
Am I starting to suspect that the HttpSessionListener is not doing what I expect, am I missing something?
Edit:
My listener is registered in my web.xml as follows:
<listener> <listener-class>com.domain.web.listener.LogoutListener</listener-class> </listener>
java java-ee session-timeout
seanhodges
source share