note 27710 added to function.setcookie

From: Date: Mon, 16 Dec 2002 19:04:26 +0000
Subject: note 27710 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-40974@lists.php.net to get a copy of this message
As documentation says, "Cookies will not become visible until the next loading of a page that the cookie should be visible for." The easiest way to see cookies within the same loading of page: setcookie('mycookie', 'foobar'); $_COOKIE['mycookie'] = 'foobar'; // ... Of course, assigning a value to $_COOKIE won't change the value of the cookie on the user's system. -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+27710 http://master.php.net/manage/user-notes.php?action=delete+27710 http://master.php.net/manage/user-notes.php?action=reject+27710

« previous php.notes (#40974) next »