What is the code in the
Servlet that allows you to get the count of activeSessions. I suspect you are stuffing this in the session.setAttribute("activeSessionCOunter", activeSessions);
However, you will need another static method that returns this session counter
Now you can try this code in multiple browsers ...Chrome, IE, Saffari, or from multiple computers
I figure you will see number increase as sessions join!
jami siva wrote:I created below Listener to track how many sessions are created. However, If I open number of browsers the below sessionCreated() method is executed only once. I thought every brower request treated as a seperate session. If it is true, below sessionCreated() method will call for every newly created session(In this case for every new browser request). Please let me know whether my understanding is right or wrong.
And how to test the below HttpSessionListener.
Thanks,
Siva