Is there a way to know how many HttpSession Objects in the container?
Lipman Li
Ranch Hand
Joined: May 02, 2002
Posts: 122
posted
0
the information will be useful, if you want to know how many users
actively
are using your system currently.
Santosh Maskar
Ranch Hand
Joined: Jul 02, 2003
Posts: 226
posted
0
hi by using the getCreationTime() it return the time when session is created by using this u can track the number of user currently logging in
Lipman Li
Ranch Hand
Joined: May 02, 2002
Posts: 122
posted
0
we know that the HttpSession.getCreationTime() could give some hints, but how could you get the reference to this HttpSession Object in the first place? I'm thinking that there must be something with container, which could give a collection of those session object. maybe it is container specific feature.
R K Singh
Ranch Hand
Joined: Oct 15, 2001
Posts: 5369
posted
0
there was one method which could give you all active session but now it is deprecated.
"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
R K Singh
Ranch Hand
Joined: Oct 15, 2001
Posts: 5369
posted
0
I think you have to implement one of the listeners for session to keep active session count.