note 20639 deleted from function.setcookie by sniper

From: Date: Wed, 11 Dec 2002 07:17:35 +0000
Subject: note 20639 deleted from function.setcookie by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40727@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. [Editor's Note: This should only apply if register_globals is on. Otherwise, the cookie should be available in in the superglobal array $_COOKIE]

« previous php.notes (#40727) next »