Class SessionCounter

  • All Implemented Interfaces:
    EventListener, javax.servlet.http.HttpSessionListener

    public class SessionCounter
    extends Object
    implements javax.servlet.http.HttpSessionListener
    Author:
    Chris
    • Constructor Detail

      • SessionCounter

        public SessionCounter()
    • Method Detail

      • sessionCreated

        public void sessionCreated​(javax.servlet.http.HttpSessionEvent se)
        Specified by:
        sessionCreated in interface javax.servlet.http.HttpSessionListener
      • sessionDestroyed

        public void sessionDestroyed​(javax.servlet.http.HttpSessionEvent se)
        Specified by:
        sessionDestroyed in interface javax.servlet.http.HttpSessionListener
      • getActiveSessions

        public static int getActiveSessions()