Our application logs off after 30 min and gets redirected to login page,i am specifying session timeout in web.xml and using a requestProcessor for redirecting.I want to sho
Create a Listener class implementing HttpSessionListener and define it in web.xml
HttpSessionListener
This will notify you when any session is destroyed. Use the sessionDestroyed() method.
sessionDestroyed()
See a full example here:
http://www.mkyong.com/servlet/a-simple-httpsessionlistener-example-active-sessions-counter/