File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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.
I agree. Here's the link:
subject: Execute code when a session expires
How to Execute Session Destroying code in jsp
when a request expires
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-2014