Try to understand following code given lower than which is solve your issue. In the following code I have use sessionDestroyed() method to perform this.
Method1:
Code:
public void sessionCreated(HttpSessionEvent args[0])
{
System.out.print("Creation of Session is Successful");
}
public void sessionDestroyed(HttpSessionEvent args[0])
{
System.out.print("Session is destroyed");
} Method2:
Code:
@Override
public void sessioneventssionDestroyed(HttpSessionEvent sessionevent)
{
UsessioneventrSession usessioneventrsession = (UsessioneventrSession) sessionevent.getSession().getAttribute(org.kuali.RiceConstants.USER_SESSION_KEY);
GlobalVariables.sessioneventtUsessioneventrSession(usessioneventrsession);
super.sessioneventssionDestroyed(sessionevent);
}
Bookmarks