ID:               42273
 Updated by:       [EMAIL PROTECTED]
 Reported By:      dancega at comcast dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Output Control
 Operating System: Vista Business
 PHP Version:      5.2.3
 New Comment:

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.





Previous Comments:
------------------------------------------------------------------------

[2007-08-11 19:10:22] dancega at comcast dot net

Description:
------------
This problem was encountered with php 5.2.3.3

When using setcookie, only the last cookie is output from the server. 
Cookies preceeding the last cookie are never sent.

This seems to have been an issue with 4.X but seems to have reoccured.

Reproduce code:
---------------
<?php
echo "begin cookie test";
setcookie('firstcookie','the first cookie');
setcookie('secondcookie',"the second cookie");
echo "  end cookie test";
?>


Expected result:
----------------
When loading the subsequent page in the same browser session I expect
to see 

$_COOKIE['firstcookie']
$_COOKIE['secondcookie']

Actual result:
--------------
I see only $_COOKIE['secondcookie']

I never see $_COOKIE['firstcookie']

Note : this is verified in a utility which allows me to examin http
headers.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42273&edit=1

Reply via email to