| |
|
| java.lang.Object org.apache.turbine.services.session.SessionListener
SessionListener | public class SessionListener implements HttpSessionListener,HttpSessionActivationListener,Serializable(Code) | | This class is a listener for both session creation and destruction,
and for session activation and passivation. It must be configured
via your web application's web.xml deployment
descriptor as follows for the container to call it:
<listener>
<listener-class>
org.apache.turbine.session.SessionListener
</listener-class>
</listener>
<listener> elemements can occur between
<context-param> and <servlet>
elements in your deployment descriptor.
The
SessionListener.sessionCreated(HttpSessionEvent) callback will
automatically add an instance of this listener to any newly created
HttpSession for detection of session passivation and
re-activation.
since: 2.3 author: Quinton McCombs author: Daniel Rall version: $Id: SessionListener.java 534527 2007-05-02 16:10:59Z tv $ See Also: javax.servlet.http.HttpSessionListener |
sessionCreated | public void sessionCreated(HttpSessionEvent event)(Code) | | Called by the servlet container when a new session is created
Parameters: event - Session creation event. |
sessionDestroyed | public void sessionDestroyed(HttpSessionEvent event)(Code) | | Called by the servlet container when a session is destroyed
Parameters: event - Session destruction event. |
sessionDidActivate | public void sessionDidActivate(HttpSessionEvent event)(Code) | | Called by the servlet container when an existing session is
(re-)activated.
Parameters: event - Session activation event. |
sessionWillPassivate | public void sessionWillPassivate(HttpSessionEvent event)(Code) | | Called by the servlet container when a an existing session is
passivated.
Parameters: event - Session passivation event. |
|
|
|