Package com.jk.web.servlets
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
sessionCreated
(jakarta.servlet.http.HttpSessionEvent se) This method is called when a new session is created.void
sessionDestroyed
(jakarta.servlet.http.HttpSessionEvent se) This method is called when a session is destroyed.
-
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 interfacejakarta.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 interfacejakarta.servlet.http.HttpSessionListener
- Parameters:
se
- Specifies the HttpSessionEvent associated with the session destruction.
-