Class MvcSessionListener

java.lang.Object
com.jk.web.mvc.MvcSessionListener
All Implemented Interfaces:
jakarta.servlet.http.HttpSessionListener, EventListener

@WebListener public class MvcSessionListener extends Object implements jakarta.servlet.http.HttpSessionListener
This class is a Servlet Session Listener that manages MVC-related session events.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • MvcSessionListener

      public MvcSessionListener()
  • Method Details

    • sessionCreated

      public void sessionCreated(jakarta.servlet.http.HttpSessionEvent arg)
      Receives notification that a session has been created.
      Specified by:
      sessionCreated in interface jakarta.servlet.http.HttpSessionListener
      Parameters:
      arg - the HttpSessionEvent containing the session
    • sessionDestroyed

      public void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent arg)
      Receives notification that a session is about to be invalidated.
      Specified by:
      sessionDestroyed in interface jakarta.servlet.http.HttpSessionListener
      Parameters:
      arg - the HttpSessionEvent containing the session