note 103159 added to reserved.variables.cookies

From: Date: Tue, 29 Mar 2011 15:23:51 +0000
Subject: note 103159 added to reserved.variables.cookies
Groups: php.notes 
Request: Send a blank email to php-notes+get-178305@lists.php.net to get a copy of this message
To illustrate what Chris Watson meant: <?php setcookie('test', 'value'); var_dump($_COOKIE['test']); ?> The output is "NULL". The reason being that $_COOKIE is only loaded with the cookies received from the browser, not those that you've just set. ---- Server IP: 69.147.83.197 Probable Submitter: 218.186.17.226 (proxied: 116.88.226.15) ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.cookies.php Edit -- https://master.php.net/note/edit/103159 Del: integrated -- https://master.php.net/note/delete/103159/integrated Del: useless -- https://master.php.net/note/delete/103159/useless Del: bad code -- https://master.php.net/note/delete/103159/bad+code Del: spam -- https://master.php.net/note/delete/103159/spam Del: non-english -- https://master.php.net/note/delete/103159/non-english Del: in docs -- https://master.php.net/note/delete/103159/in+docs Del: other reasons-- https://master.php.net/note/delete/103159 Reject -- https://master.php.net/note/reject/103159 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178305) next »