#22440 [Csd->Opn]: Bug with cookie in CGI not in ISAPI
| From: | garfield_fr at tiscali dot fr | Date: | Sun, 04 May 2003 15:59:03 +0000 |
| Subject: | #22440 [Csd->Opn]: Bug with cookie in CGI not in ISAPI | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39032@lists.php.net to get a copy of this message | ||
ID: 22440
User updated by: garfield_fr at tiscali dot fr
Reported By: garfield_fr at tiscali dot fr
-Status: Closed
+Status: Open
Bug Type: CGI related
Operating System: Windows 2000 pro SP3
PHP Version: 4.3.2-dev
New Comment:
I try with PHP 4.3.2 RC3 dev build date May 4 2003 10:14:20
The bug is still here !!
Previous Comments:
------------------------------------------------------------------------
[2003-05-01 20:21:10] sniper@php.net
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot 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 in short time.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2003-03-30 18:43:28] garfield_fr at tiscali dot fr
this is a little page to test the bug :
if no cookie are set, click on "setCookie and header" link to set the
cookie and redirect to other... cookie are not set !!
tested with
PHP Version : 4.3.2-RC
Build Date : Mar 30 2003 09:11:32
<?php
function SetTheCookie(){
setcookie("test","TestValue");
}
function set_redir(){
SetTheCookie();
header("Location: ".$_SERVER['PHP_SELF']."?op=other");
}
function delcookie(){
setcookie("test","");
}
?>
<html>
<head></head>
<body>
Test SetCookie function with Header("Location: ....") function...<br>
<a href="<?= $PHP_SELF; ?>?op=set">just setCookie</a><br/>
<a href="<?= $PHP_SELF; ?>?op=set_redir">setCookie and
header("location:...")</a><br/>
<a href="<?= $PHP_SELF; ?>?op=delcookie">delete
cookie("location:...")</a><br/>
<?php
echo "\$_GET : <br><xm>";var_dump($_GET);echo
"</xmp><br>";
$op = $_GET['op'];
switch ($op){
case "set" :
SetTheCookie();
break;
case "set_redir" :
set_redir();
break;
case "delcookie" :
delcookie();
break;
}
echo "\$_COOKIE : <br><xm>";var_dump($_COOKIE);echo
"</xmp><br>";
?>
</body>
</html>
------------------------------------------------------------------------
[2003-03-30 17:41:56] garfield_fr at tiscali dot fr
I try using last CVS snapshot (30 mar 2003).
bug is still here !! setcookie() with header("location: ...") doesn't
work ...(test with phpnuke 6.0.17, in login page)
------------------------------------------------------------------------
[2003-03-30 06:46:26] moriyoshi@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
This bug is likely fixed by a recent patch in CVS, so please try the
latest cvs snapshot again.
------------------------------------------------------------------------
[2003-02-27 08:54:17] sniper@php.net
reclassified
------------------------------------------------------------------------
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/22440
--
Edit this bug report at http://bugs.php.net/?id=22440&edit=1