php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18587 use_cookies set to 0 seems to be ignored
Submitted: 2002-07-26 04:27 UTC Modified: 2002-07-31 03:59 UTC
From: druid at takeover dot nl Assigned:
Status: Closed Package: Session related
PHP Version: 4.2.2 OS: Linux/Redhat 7.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: druid at takeover dot nl
New email:
PHP Version: OS:

 

 [2002-07-26 04:27 UTC] druid at takeover dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-26 04:55 UTC] druid at takeover dot nl
I have confirmed it to work using PHP 4.1.1 (same OS) as well.
 [2002-07-26 07:52 UTC] 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 08:23 UTC] druid at takeover dot 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 18:20 UTC] 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-31 03:59 UTC] druid at takeover dot nl
*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!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 28 19:00:02 2025 UTC