Username:
Password:
Not registered yet? Click Here
Search
Resources
Articles
Title/Subject only
Title
-and-
text
Home
Forums
Articles
Resources
Software Forums: Display Message
Author:
Jean-Christophe Dewalque
E-mail:
[email protected]
Date:
4/24/2003 9:30:27 AM
Subject:
Problem with cookies
Message:
Hello,
I can't delete my cookies even with the method setMaxAge(0)
Here is my code :
Cookie cookie=null;
Cookie cookies[]=request.getCookies();
if (cookies!=null)
{
for(int i=0; i<cookies.length; i++)
{
cookie=cookies;
if (cookie!=null)
{
cookie.setMaxAge(0);
}
}
}
cookie=new Cookie(chaýneCookies,chaýneCookies);
response.addCookie(cookie);
I use the breakpoint and my application pass on cookie.setMaxAge(0)
but setMaxAge doesn't delete my cookie.
Anyone have an idea?
Thanks in advance
You must be logged in to post a reply...
Back to the Folder
Java
-- Anything related to Java...
Problem with cookies
by
Jean-Christophe Dewalque
at 4/24/2003 9:30:27 AM
© 2002 -
SoftwareForum.org
- All Rights Reserved
...A software developer's forum