aspose 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 Spring in Action this week in the Spring 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
 
Don't get me started about those stupid light bulbs.
 
subject: what is HttpSessionListener