File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes what is HttpSessionListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "what is HttpSessionListener" Watch "what is HttpSessionListener" New topic
Author

what is HttpSessionListener

kesava chaitanya
Ranch Hand

Joined: Aug 15, 2001
Posts: 140
hi
what is HttpSessionListener?can anybody give me example using httpsessionlistener
Dhananjay Ghanwat
Greenhorn

Joined: Dec 23, 2002
Posts: 27
Hi
An object that implements the HttpSessionListener interface is notified when a session is created or destroyed in its web app context
It can be used to track how many users are currently logged in the system by keeping an counter in the object that implements the Listener and then subsequently incrementing / decrementing it in the appropriate methods
 
jQuery in Action, 2nd edition
 
subject: what is HttpSessionListener
 
Similar Threads
Sessions
How to restrict the number of users connecting to my website
this function disable close window
Access to servlet context in HttpSessionListener
Session time-out notification