Hi all, I've read through the archives but I couldn't find an answer for
the following:
am I able to update cookie values ? (I know some of the getValueXXX
methods return garbage, but I am more interested in resetting cookie
values)
here's my code -- (the relevant parts)
Cookie theCookie=null;
Cookie cookies[]=req.getCookies();;
int i;
for(i=0; i<cookies.length;i++){
theCookie=cookies[i];
theCookie.setValue("void");
theCookie.setMaxAge(1);
}
I then redirect myself to another servlet that checks for cookies, and
prints the values out, and sure enough, none of the values change (nor
have any of them expired)!
Am I missing something ?
Thanks,
Miriam
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html