This content has been marked as final.
Show 1 reply
-
1. Re: While Session Expire Call One Method
aravindkosuri Nov 20, 2009 7:07 PM (in response to moyphus)Write a HttpSessionListener class and override sessionDestroyed method the way you want.
Declare your listener class in web.xml like below.
<listener-class> com.abc.geps.session.UserSessionListener </listener-class> Session Lister class template public class UserSessionListener implements HttpSessionListener { public UserSessionListener() { } public void sessionCreated(HttpSessionEvent event) { System.out.println(“Session created"); } public void sessionDestroyed(HttpSessionEvent event) { // Your code goes here }