Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat stops invalidating sessions after session expiry.

Status
Not open for further replies.

pgontek

Programmer
May 13, 2008
1
0
0
US
Tomcat Version 6.014 on Linux.

We have implemented HttpSessionListener in our application. In that listener we are doing some special code on sessionDestroyed(mainly closing connection with oracle database). But after some time tomcat stops calling that sessionDestroyed method of listener for all session.


When we look sessions in tomcat manager we can see couples of sessions are expired (we have 30 minute session timeout). We are able to invalidate all sessions except first expired session using tomcat manager. Even though we try multiple time to invalidate first expired (problem session) it does not invalidate. And due to that session tomcat stops invalidate other session expired after that problem session.

Can you please guide me how to kill that problem session or fix tomcat such that it invalidates all expired sessions.


Thanks for your help.
 
Have you added a servlet into web.xml?
or the web.xml come from Tomcat and you have not edited the web.xml.

syntax for adding a servlet in web.xml
<servlet-mapping>
<servlet-name>YourServlet</servlet-name>
<url-pattern>/YourServlet</url-pattern>
</servlet-mapping>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top