Bug #17410 Updated: setcookie only registering once
| From: | koxta at tha dot one dot pl | Date: | Tue, 11 Jun 2002 18:51:56 +0000 |
| Subject: | Bug #17410 Updated: setcookie only registering once | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10151@lists.php.net to get a copy of this message | ||
ID: 17410
Updated by: koxta@tha.one.pl
Reported By: mich@php.dk
Status: Closed
Bug Type: HTTP related
Operating System: FreeBSD 4.5-RELEASE
PHP Version: 4.2.1
New Comment:
Hmm... I didn't find anything new about that bug since 24 May. How to
avoid it ?
Koxta
Previous Comments:
------------------------------------------------------------------------
[2002-05-24 10:08:45] 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-05-24 09:34:00] mich@php.dk
Ohh - yeahh .. It is compiled as a module for apache2
------------------------------------------------------------------------
[2002-05-24 09:30:04] mich@php.dk
'./configure' '--with-apxs2=/usr/local/sbin/apxs' '--with-
tsrm-pth' '--with-config-file-path=/usr/local/etc' '--
enable-versioning' '--with-regex=system' '--without-gd' '--
without-mysql' '--with-gd=/usr/local' '--enable-gd-native-
ttf' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/
usr/local' '--with-png-dir=/usr/local' '--with-zlib' '--
with-pgsql=/usr/local' '--enable-ftp' '--with-curl=/usr/
local' '--prefix=/usr/local' 'i386-portbld-freebsd4.5'
---------------
When doing the following test:
<snip>
<?
setcookie("a", "a123");
setcookie("b", "b623");
setcookie("c", "c233");
setcookie("d", "d143");
?>
<a href="p2.php">Page 2</a>
</snip>
and viewing the page:
<snip>
<?
echo $HTTP_COOKIE_VARS["a"]."<br>";
echo $HTTP_COOKIE_VARS["b"]."<br>";
echo $HTTP_COOKIE_VARS["c"]."<br>";
echo $HTTP_COOKIE_VARS["d"]."<br>";
?>
<a href="p1.php">Page 1</a>
</snip>
only the last cookie is echo'ed. When running on php 4.1.1
all four cookies are echo'ed. When looking in my cookies
folder only one cookie has been set.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17410&edit=1