note 27814 deleted from function.setcookie by philip

From: Date: Tue, 21 Jan 2003 21:44:38 +0000
Subject: note 27814 deleted from function.setcookie by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42545@lists.php.net to get a copy of this message
Actually I had a problem where I used $_COOKIE in a mysql query, and it failed the first time visitors entered the site due to the reload issue with setcookie. Solution?: if (!isset($_COOKIE['cookiename'])) { $_COOKIE['cookiename'] = VALUE; }

« previous php.notes (#42545) next »