Wednesday, August 12, 2009
How do i know when user Session has expired or removed?
Define a class, say SessionTimeoutIndicator,which implements javax.servlet.http.HttpSessionBindingListener. Create a SessionTimeoutIndicator object and add it to the user session. When the session is removed, SessionTimeoutIndicator.valueUnbound() will be called by the Servlet engine. You can implement valueUnbound() to do the required operation.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment