On Tue, 27 Aug 2002, Michael Remijan wrote:

> ...
>
> I'm testing the use of cookies by basically setting up a jsp page in
> two different contexts and flipping back and forth between them.
> I've tried to delete the cookie by calling setMaxAge() with -1, 0,
> and 1 but i've not been able to been able to successfully delete the
> cookie, i.e when i flip to the other context i get my "found cookie"
> message instead of the "cookie missing, adding a new one" message.
> Anyone been able to successfully delete a cookie?

You don't specify fully what you're doing to delete the cookie.
Remember, after you set up the cookie (BTW, max age of 0 should delete
it), you need to add the cookie to the response.  Changing the cookie
in the request alone and/or not adding it to the response won't do
anything.

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to