You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marcio Ghiraldelli <ma...@neobiz.com.br> on 2006/03/29 16:38:44 UTC
Cookie
How do I unset a Cookie with a Struts Action?
Re: [ot] Cookie
Posted by Laurie Harper <la...@holoweb.net>.
Marcio Ghiraldelli wrote:
> How do I unset a Cookie with a Struts Action?
Not sure, but I think you need to call addCookie() and pass in a cookie
with the right name and a null value.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Cookie
Posted by Ruben Cepeda <ru...@hotmail.com>.
I've never done it myself but this might try to add the cookie with a null
value in theresponse object.
response.addCookie(new Cookie("targetName",null));
Let me know if works.
*************************************
Ruben Cepeda
ruben_cepeda@hotmail.com
*************************************
----Original Message Follows----
From: "Marcio Ghiraldelli" <ma...@neobiz.com.br>
Reply-To: "Struts Users Mailing List" <us...@struts.apache.org>
To: <us...@struts.apache.org>
Subject: Cookie
Date: Wed, 29 Mar 2006 11:38:44 -0300
How do I unset a Cookie with a Struts Action?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org