H
HugeBob
Hi All,
Why does the following code generate multiple cookies:
Cookie c = new Cookie("bgColor", bgColor);
c.setMaxAge(300); // Five minutes
c.setPath("/");
response.addCookie(c);
I added the c.setPath() command thinking that that was the issue. But
I was wrong. I would think that the cookie would be overwritten.
Also, FireFox says the cookies expire "at end of session" when it
should end in 5 minutes.
Why does the following code generate multiple cookies:
Cookie c = new Cookie("bgColor", bgColor);
c.setMaxAge(300); // Five minutes
c.setPath("/");
response.addCookie(c);
I added the c.setPath() command thinking that that was the issue. But
I was wrong. I would think that the cookie would be overwritten.
Also, FireFox says the cookies expire "at end of session" when it
should end in 5 minutes.