cookie bug
| From: | Mark Lo | Date: | Tue, 22 Aug 2000 20:31:05 +0000 |
| Subject: | cookie bug | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-13015@lists.php.net to get a copy of this message | ||
Hi,
I might facing a cookie bug problem in PHP4. I set the cookie with the following syntax.
setcookie("useruser","$values",time()+10800,".domain.com",0);
the $values of the cookie is acquired from the login page.
I have tried to login from two browsers at the same machine. The first browser, I login as mark.
so the cookie value is mark. The second browser, I login as Eric, so the cookie value is eric. Now
I am trying to retrive the values of the cookie from the two browser, and one of the browser 's
cookie value is being changed. I mean the two browser at the same machine having the same
values....like mark....or like Eric. I wonder is this a bug.?? if no, what did i do wrong.??
On the other hand, If I set the cookie with
"setcooke("useruser","$values");
Then, It works perfectly, no replacement occured. Can anyone tell me what is happening.
Thank you
Mark Lo