I tried to set multiple values in a cookie with a code that looks like this:
setcookie("cookie[two]","Cookie2",time()+3600);
setcookie("cookie[one]","Cookie1",time()+3600);
But for some reason it only sets the value from cookie[one]. Cookie[two] is skipped. I don't have any clue why but when I used PHP version 3.X with Apache 1.3 I had no problems. Now I am using PHP version 4.2.1 with Apache 2.036 and I can't write the second value to a cookie.
Anybody any clue?