You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sonny Sukumar <ah...@hotmail.com> on 2003/08/14 21:33:27 UTC

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


AW: how to destroy a session?

Posted by Marco Rolappe <m_...@web.de>.
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: users-return-54258-m_rolappe=web.de@cocoon.apache.org
> [mailto:users-return-54258-m_rolappe=web.de@cocoon.apache.org]Im Auftrag
> von Sonny Sukumar
> Gesendet: Donnerstag, 14. August 2003 21:33
> An: users@cocoon.apache.org
> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org