Implement HttpSessionListener and provide necessary procedures in the sessionDestroyed() method.
Have a "heart beat" mechanism to periodically check if user session is still valid.
Release system resources when session is invalidated.
Have a "heart beat" mechanism to periodically check if system resources are used.
Release system resources after it was detected that they are not used during specified timeout.
You should set true the setAutoRelease parameter of the HttpSession object
You don?t need to do anything.
System resources bound to the current session will be released automatically when the session is ended.
|