HttpSessionListener

HttpSessionListener :

The HttpSessionListener interface is used to monitor when sessions are created and destroyed on the application server its best practical use would be to track session use statistics for a server.

Example :

index.html

HttpSess.java

Servlet1.java
Servlet2.java

web.xml

 

Leave a Reply

Your email address will not be published. Required fields are marked *