Class SessionListener

java.lang.Object
io.goobi.viewer.SessionListener
All Implemented Interfaces:
HttpSessionListener, EventListener

@WebListener public class SessionListener extends Object implements HttpSessionListener
HTTP session listener that tracks active user sessions and performs cleanup on session expiry.
  • Constructor Details

    • SessionListener

      public SessionListener()
  • Method Details

    • sessionCreated

      public void sessionCreated(HttpSessionEvent event)
      Specified by:
      sessionCreated in interface HttpSessionListener
    • sessionDestroyed

      public void sessionDestroyed(HttpSessionEvent event)
      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 the PRIV_ prefix.
      Specified by:
      sessionDestroyed in interface HttpSessionListener
      Parameters:
      event - servlet session event carrying the session being destroyed