Top Description Methods
jakarta.servlet.http

public Interface HttpSessionIdListener

extends EventListener
Imports
java.util.EventListener

Implementations of this interface are notified when an HttpSession's ID changes. To receive notification events, the implementation class must be configured in the deployment descriptor for the web application, annotated with jakarta.servlet.annotation.WebListener or registered by calling an addListener method on the jakarta.servlet.ServletContext.
Since
Servlet 3.1
See Also
HttpSessionEvent, HttpServletRequest#changeSessionId()

Method Summary

Modifier and TypeMethod and Description
public void
sessionIdChanged(HttpSessionEvent
the notification event
se
,
String
the old session ID
oldSessionId
)

Notification that a session ID has been changed.

Method Detail

sessionIdChangedback to summary
public void sessionIdChanged(HttpSessionEvent se, String oldSessionId)

Notification that a session ID has been changed.

Parameters
se:HttpSessionEvent

the notification event

oldSessionId:String

the old session ID