This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what is HttpSessionListener  RSS feed

 
kesava chaitanya
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
what is HttpSessionListener?can anybody give me example using httpsessionlistener
 
Dhananjay Ghanwat
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!