• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session tracking

 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to know how many active session are there in my web application.

One way is to keep track of the users and corresponding session ids where the user logs in.

The server also keeps track of all the active information. Is there some api to extract that kind of information from server
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not hard to implement something like this yourself using session listeners.

I have an example app that does this at:
http://simple.souther.us/not-so-simple.html

Look for SessionMonitor
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic