Hi Everyone,
I need some help on something I m working on. I am developing a web application using
Struts and
Tomcat 5.0.28 as Web Server. When the User logs into the application I logon to another resource and I maintain a connection to that resource which I make sure to terminate when the user clicks on the Logout button. This is taken care of in the LogoutAction class developed using Struts. However, there are instances where the user might not click logout and the Web Server times out the session. In that case the resources are still being used up since the user never clicked on the Logout and the LogoutAction class never got invoked
Is there a way I could make sure that the Logout Action class gets invoked if the session times out or is there a location (similar to finalize method in Garbage collection) where I can place the Logout specific code that would free up the resources.
Your thoughts on this would be appreciated. Thanks in advance,
Param Yanamandra