#18587 [Csd]: use_cookies set to 0 seems to be ignored

From: Date: Wed, 31 Jul 2002 07:59:04 +0000
Subject: #18587 [Csd]: use_cookies set to 0 seems to be ignored
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15649@lists.php.net to get a copy of this message
ID: 18587 User updated by: druid@takeover.nl Reported By: druid@takeover.nl Status: Closed Bug Type: Session related Operating System: Linux/Redhat 7.1 PHP Version: 4.2.2 New Comment: *slaps self* It does work, there was a little tiny bit that didn't include the ini_set() part and caused the havoc on the rest of the pages. Thanks for the help though! Previous Comments: ------------------------------------------------------------------------ [2002-07-26 18:20:13] sniper@php.net I can not reproduce this with 4.3.0-dev.. Try this script instead: <?php ini_set("session.use_cookies", "0"); session_name("Session"); session_start(); var_dump($_COOKIE); ?> Reload it couple of times. For me, the $_COOKIE array remains empty. If I comment out the ini_set() line, then the cookie will be set. ------------------------------------------------------------------------ [2002-07-26 08:23:27] druid@takeover.nl Meaning it was fixed after 00:00 on 26th of July (last night)? I'm running the snapshot of that date (http://snaps.php.net/php4-200207260000.tar.bz2), and the bug is still present there. Regards, Michiel ------------------------------------------------------------------------ [2002-07-26 07:52:36] sniper@php.net This bug has been fixed in CVS. You can grab a snapshot of the CVS version at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2002-07-26 04:55:59] druid@takeover.nl I have confirmed it to work using PHP 4.1.1 (same OS) as well. ------------------------------------------------------------------------ [2002-07-26 04:27:15] druid@takeover.nl The following code: ini_set("session.use_cookies", "0"); session_name("Session"); session_start(); Does not seem to work any more (cookie is generated and carried by the browser), it did work before (using PHP 4.0.6). Any ideas? Cheers, Michiel ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18587&edit=1

« previous php.bugs (#15649) next »