in reply to (Ovid) Re: Seeking help to avoid duplicate cookies
in thread Seeking help to avoid duplicate cookies
I am not intentionally trying to create cookies with the same name. I only need one cookie and it has a unique name, however when I inspect the value of $ENV{'HTTP_COOKIE'} using the perl code, I get more than one instance of the cookie, which may or may not have the same value. For example the value of $ENV{'HTTP_COOKIE'} might be something like: foo=bar1; foo=bar2
An example of the java code segment that I use to write the cookie:
var tkm = new Date(); tkm.setTime(tkm.getTime() + 96*3600000); document.cookie = "foo=bar1; expires=" + tkm.toGMTString() + "; path=/ +";
Also note that I always access the cookie from the same location. Any clues?
|
|---|