ge without making a copy. Thank you.
- Original Message -
From: "Mike Peremsky" <[EMAIL PROTECTED]>
To:
Sent: Friday, June 01, 2007 9:48 AM
Subject: Cookie Rookie - cannot delete session cookie
I am pretty new to cookies and am having an issue. I create a cookie in my
s
Ding!
Thanks to all who repsonded. I had already implemented all that everyone else
had suggested, but the one item I overlooked was resetting the path in the
remove method of my cookie class to match when it was created.
Thanks you for making my friday A LOT brighter!
Torgeir Veimo
On 1 Jun 2007, at 14:48, Mike Peremsky wrote:
I am pretty new to cookies and am having an issue. I create a
cookie in my servlet and write it to the response to last the
lifetime of the session (duration = -1). When the user clicks the
logout button I find the cookie, reset the duration to
Hi,
To delete a cookie you have to set its max age to 0.
Calling invalidate on the httpsession will delete the cookie that
holds the session id, wont it? request.getSession().invalidate()
Ben
On 6/1/07, Tim Funk <[EMAIL PROTECTED]> wrote:
There is nothing in the servelt api to explicitly del
Most likely you are using a JSP and unless you have page session='false'
- a session (and new cookie of the same name) will be created on the
next request.
-Tim
Mike Peremsky wrote:
Yes, but why is it not being deleted when I get the cookie
(request.getCookies()), then reset the duration to
Yes, but why is it not being deleted when I get the cookie
(request.getCookies()), then reset the duration to 0 (cookie.setMaxAge(0)) and
re-add it to the response (response.addCookie(cookie))
Tim Funk <[EMAIL PROTECTED]> wrote: There is nothing in the servelt api to
explicitly delete the ses
There is nothing in the servelt api to explicitly delete the session cookie.
-Tim
Mike Peremsky wrote:
I am pretty new to cookies and am having an issue. I create a cookie in my
servlet and write it to the response to last the lifetime of the session
(duration = -1). When the user clicks the
I am pretty new to cookies and am having an issue. I create a cookie in my
servlet and write it to the response to last the lifetime of the session
(duration = -1). When the user clicks the logout button I find the cookie,
reset the duration to 0 then re-add the cookie to the response. But when