#28301 [NEW]: Multiple session cookies set with same value

From: Date: Thu, 06 May 2004 14:42:16 +0000
Subject: #28301 [NEW]: Multiple session cookies set with same value
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59303@lists.php.net to get a copy of this message
From: o dot gab at anw dot de Operating system: Linux 2.4.21 SMP PHP version: 4.3.6 PHP Bug Type: Session related Bug description: Multiple session cookies set with same value Description: ------------ Using the PHP sessions, I found a strange behaviour when I accept the session cookie manually (my browser setting: ask for cookies). On some servers, every page containing sesssion_start() tries to set this cookie again and again, with identical name and value. Unfortunately the Internet Explorer accepts this only twice, then it hangs. Mozilla/Netscape/Opera accept cookies without crashing. This problem refers even to large sites. I can give you examples by mail. I saw this problem also on apache 2.0.40/PHP 4.2.2 and apache 1.3.26/4.3.0, so there might be other dependencies (OS? Apache?), which I can't reproduce. My build for apache 1.3.29 / PHP 4.3.6: './configure' '--with-mysql=/usr' '--with-apache=../apache_1.3.29' '--enable-track-vars' '--enable-trans-sid' '--with-gd' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-tiff-dir=/usr/lib' '--with-freetype-dir=/usr/lib' '--with-zlib' '--enable-bcmath' '--with-ftp' '--enable-ftp' '--with-mcrypt' '--with-mhash' '--with-gettext' '--with-config-file-path=/etc' php.ini with no changes. There are no error messages in any logfiles (php/apache). Similar to Bug #26502, but it seems not to be a browser problem as sniper says. Reproduce code: --------------- <? session_start(); $var = "any value"; session_register("var"); print_r( $HTTP_SESSION_VARS ); ?> Note: The browser setting must be "ask for cookies" to reproduce the behavior. Expected result: ---------------- At the first page visit, my browser asks me to set the session cookie. I accept. Reloading this page should not try to set the cookie again. Actual result: -------------- The cookie is set every page view. -- Edit bug report at http://bugs.php.net/?id=28301&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28301&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28301&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28301&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28301&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28301&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28301&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28301&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28301&r=support Expected behavior: http://bugs.php.net/fix.php?id=28301&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28301&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28301&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28301&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28301&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28301&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28301&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28301&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28301&r=float

« previous php.bugs (#59303) next »