note 20639 added to function.setcookie

From: Date: Thu, 11 Apr 2002 02:16:07 +0000
Subject: note 20639 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-29089@lists.php.net to get a copy of this message
If you already have a variable set with the same name you are about to assign a cookie to, the cookie will not set AND you will not get an error message. For example, if you have a login box that has an input field called "username," post that value to a user authentication page and then set a cookie called "username" the cookie won't set. Use different names and you are back in action. -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+20639 http://master.php.net/manage/user-notes.php?action=delete+20639 http://master.php.net/manage/user-notes.php?action=reject+20639

« previous php.notes (#29089) next »