Interface IBMSessionListener

All Superinterfaces:
EventListener, jakarta.servlet.http.HttpSessionListener

public interface IBMSessionListener extends jakarta.servlet.http.HttpSessionListener
The IBMSessionListener interface extends the jakarta.servlet.http.HttpSessionListener interface of the Servlet API to notify an application that its session has been removed from the server's cache. This could be because:
  • the session timed out
  • the session was programatically invalidated
  • the session cache is full and this is the least-recently-used session (distributed environment only)

A session will eventually time out on every server that accesses the session, and therefore sessionRemovedFromCache() will be called on all of these servers. sessionDestroyed() is only called during session invalidation, which only happens on one server. Further, the server that invalidates and calls sessionDestroyed() may or may not be the same server that created a session and called sessionCreated().

  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from interface jakarta.servlet.http.HttpSessionListener

    sessionCreated, sessionDestroyed
  • Method Details

    • sessionRemovedFromCache

      void sessionRemovedFromCache(String sessionId)