#24357 [Opn->Bgs]: cookies not assigned - at all
| From: | derick@php.net | Date: | Fri, 27 Jun 2003 14:32:39 +0000 |
| Subject: | #24357 [Opn->Bgs]: cookies not assigned - at all | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42626@lists.php.net to get a copy of this message | ||
ID: 24357
Updated by: derick@php.net
Reported By: calin dot brandabur at mobilesolutions dot ro
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: windows server 2003
PHP Version: 4.3.2
New Comment:
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
.
Previous Comments:
------------------------------------------------------------------------
[2003-06-27 08:23:47] calin dot brandabur at mobilesolutions dot ro
Actually the first run should return
cookie set
cookie info
username:user
password:pass
and the second run
cookie *found*
cookie info
username:user
password:pass
------------------------------------------------------------------------
[2003-06-27 08:21:42] calin dot brandabur at mobilesolutions dot ro
Description:
------------
i installed apache 2.0.46 and php 4.3.2 and the cookies are no longer
working... at all
see
http://test.mobilesolutions.ro
(win2k3 server)
and
http://new.v2r.ag/cookie
(linux server with older version of php/apache)
Reproduce code:
---------------
<?
if(!$username) {
$username = "user";
$password = "pass";
$cookie_expire = "01/01/2099";
setcookie ("username", $username, $cookie_expire);
setcookie ("password", $password, $cookie_expire);
echo "<b>cookie set</b><br><br>";
}
else {
echo "<b>cookie found</b><br><br>";
}
echo "<b>cookie
info</b><br>username:{$username}<br>password:{$password}";
?>
Expected result:
----------------
First run:
cookie set
cookie info
username:user
password:pass
Second run:
cookie set
cookie info
username:user
password:pass
Actual result:
--------------
Every run:
cookie set
cookie info
username:user
password:pass
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24357&edit=1