Yes, I think it does matter if the sessions are still open. Because, if the server is only down for 1 minute or so, a logged-in user gets the same session again, after the server is up again. But the sessiontracker is new without any sessions. In my case I just put the whole session-object into a list in my sessiontracker to be able to access session-attributes. So I would have to manually save the sessions in the list on server shutdown and reload them afterwards?
Thanks for your fast answer, Philipp > -----Ursprungliche Nachricht----- > Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 6. August 2003 21:24 > An: Tomcat Users List > Betreff: RE: Tracking active sessions > > > > Howdy, > > >I am looking for a way to track which/how many sessions are open. > Generally > > The SessionListener approach to this has been discussed several times on > this list and should work fine. > > >it seems to work with a HttpSessionListener, but the Listener is not > >notified again if the server restarts and still > >has any opened sessions. > > Does this matter? The sessions are still open is the server restarts > before they time out. > > >Anyone knows how to deal with that problem? Or is the only chance to > look > > If you don't like the above behavior, you can have the session listener > also be a ServletContextListener and clean its map on context shutdown. > > Yoav Shapira > > > > This e-mail, including any attachments, is a confidential > business communication, and may contain information that is > confidential, proprietary and/or privileged. This e-mail is > intended only for the individual(s) to whom it is addressed, and > may not be saved, copied, printed, disclosed or used by anyone > else. If you are not the(an) intended recipient, please > immediately delete this e-mail from your computer system and > notify the sender. Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]