Top Description Methods
jakarta.servlet.http

public Interface HttpSessionListener

extends EventListener
Imports
java.util.EventListener

Implementations of this interface are notified of changes to the list of active sessions in a web application. To receive notification events, the implementation class must be configured in the deployment descriptor for the web application.
Since
Servlet 2.3
See Also
HttpSessionEvent

Method Summary

Modifier and TypeMethod and Description
public default void
sessionCreated(HttpSessionEvent
the notification event
se
)

Notification that a session was created.

public default void
sessionDestroyed(HttpSessionEvent
the notification event
se
)

Notification that a session is about to be invalidated.

Method Detail

sessionCreatedback to summary
public default void sessionCreated(HttpSessionEvent se)

Notification that a session was created. The default implementation is a NO-OP.

Parameters
se:HttpSessionEvent

the notification event

sessionDestroyedback to summary
public default void sessionDestroyed(HttpSessionEvent se)

Notification that a session is about to be invalidated. The default implementation is a NO-OP.

Parameters
se:HttpSessionEvent

the notification event