Re: [PHP] Adventures in Cookies
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 Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Adventures in Cookies
On Mon, 23 Jan 2006 11:30:32 -0500 tedd [EMAIL PROTECTED] wrote: 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. Now, does anyone know where it says in any php documentation that COOKIE values are dependent upon browser type? This is a function of the way cookies work, and is not a php issue. Cookies are stored by the browser wherever the browser chooses to place them. If another browser cannot access them it cannot send any info back so it will receive a new one. Regards, Ozz. pgptMNZoBHjP0.pgp Description: PGP signature
Re: [PHP] Adventures in Cookies
On Mon, 23 Jan 2006 16:37:12 + David Grant [EMAIL PROTECTED] wrote: 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? I think he's referring to the fact that you can have one cookie in, say, Mozilla and another one in, say, Konqueror (or Internet Exploiter if you do Windoze). Regards, Ozz. pgpCzqzrfWn7S.pgp Description: PGP signature
Re: [PHP] Adventures in Cookies
Austin Denyer wrote: On Mon, 23 Jan 2006 16:37:12 + David Grant [EMAIL PROTECTED] wrote: 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? I think he's referring to the fact that you can have one cookie in, say, Mozilla and another one in, say, Konqueror (or Internet Exploiter if you do Windoze). Regards, Ozz. No i think he is more referring to that some different values are stored. But unless we dont get an example, it's useless to discuss that further :P Barry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Adventures in Cookies
I would have thought this was standard behaviour... Different browsers [can] store their cookies in different locations on the drive don't they? It's my experience that cookies are always handled autonomously and asynchronously by browsers (ie set a cookie in one browser and another won't see it) Either way I don't believe this to be a PHP specific issue :) Just my tuppence worth Dan -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 23 January 2006 16:31 To: php-general@lists.php.net Subject: [PHP] Adventures in Cookies 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. Now, does anyone know where it says in any php documentation that COOKIE values are dependent upon browser type? tedd -- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ NOD32 1.1372 (20060119) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Adventures in Cookies
Austin, Austin Denyer wrote: On Mon, 23 Jan 2006 16:37:12 + David Grant [EMAIL PROTECTED] wrote: tedd wrote: ... Can you provide some examples for what you mean? I think he's referring to the fact that you can have one cookie in, say, Mozilla and another one in, say, Konqueror (or Internet Exploiter if you do Windoze). Rightio. David -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Adventures in Cookies
Barry wrote: Austin Denyer wrote: On Mon, 23 Jan 2006 16:37:12 + David Grant [EMAIL PROTECTED] wrote: 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? I think he's referring to the fact that you can have one cookie in, say, Mozilla and another one in, say, Konqueror (or Internet Exploiter if you do Windoze). Regards, Ozz. IE: No i think he is more referring to that some different values are stored. But unless we dont get an example, it's useless to discuss that further :P Barry -- David Grant http://www.grant.org.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Adventures in Cookies
Please ignore the previous e-mail: I slipped on the keyboard. :) -- David Grant http://www.grant.org.uk/ http://pear.php.net/package/File_Ogg0.2.1 http://pear.php.net/package/File_XSPF 0.1.0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Adventures in Cookies
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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Adventures in Cookies
Austin Denyer wrote: This is a function of the way cookies work, and is not a php issue. Exactly. This is similar to how you can bookmark a page in one browser, and it won't be in another browser's bookmarks. There's nothing that says browsers should all use shared resources for persistent data. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Adventures in Cookies
Austin Denyer wrote: This is a function of the way cookies work, and is not a php issue. Exactly. This is similar to how you can bookmark a page in one browser, and it won't be in another browser's bookmarks. There's nothing that says browsers should all use shared resources for persistent data. Chris You said: There's nothing that says browsers should all use shared resources for persistent data. Exactly! There is *nothing* that says that -- and that was my point in asking. If php is to store cookies, then how the data are stored, and by what means the data are retrieved, should be reasonable topics for a php inquiry, right? Your bookmark example illustrates the issue very well -- thanks. tedd -- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Adventures in Cookies
After some googling, it's a browser thing, not a php thing, as Austin pointed out. There are just rules (well, suggestions maybe) to be aware of. Are we flogging a dead horse here? On 1/23/06, tedd [EMAIL PROTECTED] wrote: Austin Denyer wrote: This is a function of the way cookies work, and is not a php issue. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php