Re: Adventures in Cookies

From: Date: Mon, 23 Jan 2006 17:13:01 +0000
Subject: Re: Adventures in Cookies
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-229105@lists.php.net to get a copy of this message
Tedd, tedd wrote:
Hi all: While I'm sure this is obvious for most, but I just discovered this. Using one browser (browser A) I can access one of my pages and create a cookie with a user input value. Then using a different browser (browser B), I can access the same page and create another cookie with another user value. Now, it would seem to me that I shouldn't have two cookies with the same name both having different contents, but that's exactly what I've found -- for browser A will produce one value and browser B will produce another value.
Can you provide some examples for what you mean? David
David: Sure, you can see what I found above by going to: http://xn--ovg.com and creating a cookie. Then do the same thing again, but this time with a different browser and different value. Then quit each browser and re launch each with this url: http://xn--ovg.com/cookie/getcookie.php You will find that each browser reports ONLY the cookie you left with it. It's kind of neat actually. And in retrospection, I guess that this is the only way it could work considering that each browser has it's own way of handling cookies. I just never realized it before. tedd -- -------------------------------------------------------------------------------- http://sperling.com/

« previous php.general (#229105) next »