public interface HttpSessionListener extends EventListener
In order to receive these notification events, the implementation class must be either declared in the deployment
descriptor of the web application, annotated with WebListener
, or registered via one
of the addListener methods defined on ServletContext
.
Implementations of this interface are invoked at their sessionCreated(javax.servlet.http.HttpSessionEvent)
method in the order in which they have
been declared, and at their sessionDestroyed(javax.servlet.http.HttpSessionEvent)
method in reverse order.
HttpSessionEvent
Modifier and Type | Method and Description |
---|---|
default void |
sessionCreated(HttpSessionEvent se)
Receives notification that a session has been created.
|
default void |
sessionDestroyed(HttpSessionEvent se)
Receives notification that a session is about to be invalidated.
|
default void sessionCreated(HttpSessionEvent se)
se
- the HttpSessionEvent containing the sessiondefault void sessionDestroyed(HttpSessionEvent se)
se
- the HttpSessionEvent containing the sessionComments to: servlet-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.