Class HttpSessionIdChangedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.core.session.AbstractSessionEvent
org.springframework.security.core.session.SessionIdChangedEvent
org.springframework.security.web.session.HttpSessionIdChangedEvent
- All Implemented Interfaces:
- Serializable
Published by the 
HttpSessionEventPublisher when an HttpSession ID is
 changed.- Since:
- 5.4
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionHttpSessionIdChangedEvent(jakarta.servlet.http.HttpSession session, String oldSessionId) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the new session ID.Returns the old session ID.Methods inherited from class org.springframework.context.ApplicationEventgetTimestampMethods inherited from class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
HttpSessionIdChangedEvent
 
- 
- 
Method Details- 
getOldSessionIdDescription copied from class:SessionIdChangedEventReturns the old session ID.- Specified by:
- getOldSessionIdin class- SessionIdChangedEvent
- Returns:
- the identifier that was previously associated with the session.
 
- 
getNewSessionIdDescription copied from class:SessionIdChangedEventReturns the new session ID.- Specified by:
- getNewSessionIdin class- SessionIdChangedEvent
- Returns:
- the new identifier that is associated with the session.
 
 
-