HttpSessionListener
notified whenvever there is a change in HttpSession lifecycle.
There
are 3 ways to add ServletRequestAttributeListener to the Application.
1.Using
Deployment Descriptor
2.Using WebListener Annotation
3.Using addListener method of ServletContext.
Method | Description |
void sessionCreated(HttpSessionEvent se) | Receives notification that a session has been created. |
void sessionDestroyed(HttpSessionEvent se) | Receives notification that a session is about to be invalidated. |
No comments:
Post a Comment