Class JKSessionListener

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

@WebListener public class JKSessionListener extends Object implements jakarta.servlet.http.HttpSessionListener
This class is a Servlet Session Listener responsible for monitoring session creation and destruction.
Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • JKSessionListener

      public JKSessionListener()
  • Method Details

    • sessionCreated

      public void sessionCreated(jakarta.servlet.http.HttpSessionEvent se)
      This method is called when a new session is created.
      Specified by:
      sessionCreated in interface jakarta.servlet.http.HttpSessionListener
      Parameters:
      se - Specifies the HttpSessionEvent associated with the session creation.
    • sessionDestroyed

      public void sessionDestroyed(jakarta.servlet.http.HttpSessionEvent se)
      This method is called when a session is destroyed.
      Specified by:
      sessionDestroyed in interface jakarta.servlet.http.HttpSessionListener
      Parameters:
      se - Specifies the HttpSessionEvent associated with the session destruction.