tomcat/sevlet count current sessions????

Discussions

Web tier: servlets, JSP, Web frameworks: tomcat/sevlet count current sessions????

  1. tomcat/sevlet count current sessions???? (1 messages)

    I'd like to know how to count the currently live sessions I have on mt tomcat site? Is there a function on tomcat that will give me the correct information? Or will I have to implement my own solution here?
  2. Kieran, the Servlet API once included a class called HttpSessionContext with methods that would have answered your need, but that class has been deprecated since version 2.1 with 'no replacement planned'. It was considered a security risk to provide this capability.

    You will probably have to write code of your own for this purpose unless Tomcat specifically provides something (I don't use Tomcat).