Package io.goobi.viewer
Class SessionListener
java.lang.Object
io.goobi.viewer.SessionListener
- All Implemented Interfaces:
HttpSessionListener,EventListener
HTTP session listener that tracks active user sessions and performs cleanup on session expiry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsessionCreated(HttpSessionEvent event) voidsessionDestroyed(HttpSessionEvent event) Cleans up all resources that the session held when it is invalidated or times out.
-
Constructor Details
-
SessionListener
public SessionListener()
-
-
Method Details
-
sessionCreated
- Specified by:
sessionCreatedin interfaceHttpSessionListener
-
sessionDestroyed
Cleans up all resources that the session held when it is invalidated or times out. This includes record locks, admin-editor locks, and all access-permission caches stored under thePRIV_prefix.- Specified by:
sessionDestroyedin interfaceHttpSessionListener- Parameters:
event- servlet session event carrying the session being destroyed
-