|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-11 22:30 UTC] jani@php.net
[2007-08-19 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 18:00:01 2025 UTC |
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.