I need to get list of active wicket session. Now I am saving all new session in override method newSession() and this session was being removed when session was being invalidated. But this method had lots of problems. How I understand this method was very rude hack and if you know another method, I will be grateful. (I use wicket v1.5.4 and tomcat v7.0.25 )
Update
Thank for your answers, but I need to get list of WICKET session (WebSession). I added HttpSessionListener with static maps of WebSessions and HttpSessions (with synchronization). This way is better than my and doesn’t have old problems but it’s looks like hack too :(. Do you have any idea about getting list of wicket sessions?
Would it be acceptable with a simple Listener instead, something like this?
There is also an example from the “Wicket in action” book here