Hi, Have your listener also implement HttpSessionActivationListener. Correlate activation with creation and passivation with destruction (optionally). I don't have time to give detailed advice today ;)
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Daryl Stultz [mailto:[EMAIL PROTECTED] >Sent: Friday, March 19, 2004 10:27 AM >To: Tomcat Users List >Subject: Re: Session not destroyed after server shutdown > >"Tomcat Users List" <[EMAIL PROTECTED]> writes: >> You can >>always delete the work directory for the app if you actually do desire to >>blow >>away sessions as well. > >I have scripts to restart Tomcat which do precisly that because... > >>> destroyed and, when it comes up again, the sessions are still there. If >>I >>> try to get a session attribute by some key before setting the same >>attribute >>> I have a result different of null. > >I also have a HttpSessionListener that lets me view active user >statistics. It builds a list of sessions as they are created and >destroyed. When Tomcat restarts, the list of sessions is empty - naturally >since the sessions are still presumably active yet sessions are added to >my list only when created. Is there a way to get all the currently active >sessions so I can rebuild the list when Tomcat restarts? (If so, I >probably don't need the listener...) > >Thanks. > >Daryl Stultz >_____________________________________ >6 Degrees Software and Consulting, Inc. >http://www.6degrees.com >mailto:[EMAIL PROTECTED] > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] 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]