note 94030 added to function.setcookie

From: Date: Tue, 13 Oct 2009 06:31:19 +0000
Subject: note 94030 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-161667@lists.php.net to get a copy of this message
After 2 hours of head scratching, I finally came across a PHP bug filed in 2002 about sending multiple Set-Cookie headers. This may be a no-brainer to some, but make sure you set the 2nd param of header() to false if you wish to send multiple Set-Cookie headers to the browser, otherwise only the last Set-Cookie header will exist. ---- Server IP: 64.71.164.2 Probable Submitter: 69.54.5.255 ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- https://master.php.net/note/edit/94030 Del: integrated -- https://master.php.net/note/delete/94030/integrated Del: useless -- https://master.php.net/note/delete/94030/useless Del: bad code -- https://master.php.net/note/delete/94030/bad+code Del: spam -- https://master.php.net/note/delete/94030/spam Del: non-english -- https://master.php.net/note/delete/94030/non-english Del: in docs -- https://master.php.net/note/delete/94030/in+docs Del: other reasons-- https://master.php.net/note/delete/94030 Reject -- https://master.php.net/note/reject/94030 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161667) next »