hi sonny, to invalidate a session use the session's metho invalidate (). just closing the browser window won't do the trick (how should tomcat know?). AFAIR tomcat can serialize/persist sessions, but that depends on the configuration, I guess.
so just invalidate() your sessions and your problem should be gone. > -----Urspr�ngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Auftrag > von Sonny Sukumar > Gesendet: Donnerstag, 14. August 2003 21:33 > An: [EMAIL PROTECTED] > Betreff: how to destroy a session? > > > > Hi guys, > > How does a session get destroyed exactly? I set my sessions to timeout > after 4 hours by configuring my web.xml file, but I thought that either > closing the browser window or restarting Tomcat would do the trick. > > The shopping cart object in my session is destroyed, but there's a String > that somehow survives even when I both close the browser and > restart Tomcat. > > Btw, I'm running Tomcat 4.1.12 and Cocoon 2.0.4, in case it matters. > > Thanks, > > Sonny > > _________________________________________________________________ > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. > http://join.msn.com/?page=features/virus > > > --------------------------------------------------------------------- > 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]
