ID: 40806 User updated by: john at albin dot net Reported By: john at albin dot net -Status: Bogus +Status: Open Bug Type: Session related PHP Version: 4.4.6 Assigned To: iliaa New Comment:
Hi Tony, thanks for pointing at the source code reference. I am not familiar with PHP internals. I'm using PHP 4.4.6 and it's version of main/php_varriables.c (lines 201-209) does not (at first glance) appear to be analogous to the PHP 5 version (lines 209-218). Perhaps there is something in those lines that are the problem in PHP 4? (I have checked Firefox 2, IE 7, and Safari 2 and the problem persists, so it can't be the browsers.) Previous Comments: ------------------------------------------------------------------------ [2007-04-09 21:52:26] [EMAIL PROTECTED] http://cvs.php.net/viewvc.cgi/php-src/main/php_variables.c?annotate=1.104.2.10.2.7#l204 /* According to rfc2965, more specific paths are listed above the less specific ones. * we encounter a duplicate cookie name, we should skip it, since it is not possible * to have the same (plain text) cookie name for the same path and we should not overwrite * more specific cookies with the less specific ones. */ If your browser (whatever it is) does not comply with the standard, you should complain to your browser developers, not PHP. ------------------------------------------------------------------------ [2007-04-09 21:35:32] john at albin dot net I have confirmed this cookie collision while using Firefox and Safari. I believe they are compliant with the spec. The more specific cookies are sent first and PHP does NOT appear to prevent over-writing by the later, less-specific cookies. What detailed info would you like? ------------------------------------------------------------------------ [2007-04-09 20:43:41] [EMAIL PROTECTED] No, thanks. Ilia's reply is quite clear. ------------------------------------------------------------------------ [2007-04-09 20:04:55] john at albin dot net Perhaps you'd like more information rather than marking this as bogus. What detailed info would you like? ------------------------------------------------------------------------ [2007-03-22 23:32:31] [EMAIL PROTECTED] If the browser is compliant with the spec the more specific cookies are sent first and PHP prevent their overwriting by less specific cookies. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/40806 -- Edit this bug report at http://bugs.php.net/?id=40806&edit=1