• Post Reply Bookmark Topic Watch Topic
  • New Topic

Return a list of session ids in use.

 
Dave Bosky
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to return a list of session ids that are currently active?
I'm using Tomcat 5.
Thanks,
Dave
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
408
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dave,
There isn't a method that does this. You could write one using the HttpSessionBindingListener by adding/deleting the session id from a list when it is bound/unbound.
Out of curiousity, what are you planning to use this information for?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!