Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Execute code when a session expires
Joined: Oct 15, 2009
Oct 15, 2009 06:36:14
I want to execute some code when a session expires. Can anybody give me a hint on how to do this?
Joined: Apr 21, 2008
Oct 15, 2009 06:47:47
Joined: Jun 04, 2007
Oct 15, 2009 06:50:07
This can be done by using a
. You can have your Java Program implement this interface. The sessionDestroyed() method here is invoked when the session expires. So you can put the required statements in this method.
It is sorta covered in the
JavaRanch Style Guide
subject: Execute code when a session expires
when a request expires
How to Execute Session Destroying code in jsp
Another question about sessions
How to ristrict multiple login's at the same time using same username?
What happens to session object when session expires
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013