Hello all,

I've created a management screen which lists all currently logged in users.
This list is kept as a hashmap and is kept "in sync" with reality in the
following way:

At login-time I put the sessions in a list.
A sessionlistener removes any sessions from this map when sessionDestroyed()
is being called.

It all seems very simple but we noticed that some sessions are remaining in
the list for a few days while that user has different sessions open. (I am
guessing  one per every 100 sessions has this problem).

So either the session list is not in sync anymore with reality or worse:
some sessions are not being cleaned up.

Can anyone help on either how to troubleshoot this, or if there is another
(easier :) ) way to get the "currently active sessions"?

Thank you,
Glen.

Reply via email to