This method will be called for each Session that is destroyed and allow you to know when a Session is about to be destroyed.
The listener won't be notified until after the Session has been destroyed. Not a big difference if all you want is to be notified when it is destroyed, but could be important if you wanted to get something from the session before it was destroyed.
Originally posted by Frank Carver:
Excellent idea! I needed to do something like this a few months ago and I wish I'd thought of this simple solution. D'Oh!
Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Originally posted by Kenneth Robinson:
In all of our pages we have the tag <meta http-equiv="Refresh" content="1200; URL=./InvalidateSession.html"> in the <head> section of the page. After 20 minutes (1200/60), the browser redirects the InvalidateSession.html URL. We map that to a Servlet that does what it needs and explicitly invalidates the Session.
Consider Paul's rocket mass heater. |