note 19456 added to function.setcookie

From: Date: Thu, 28 Feb 2002 01:20:12 +0000
Subject: note 19456 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-27144@lists.php.net to get a copy of this message
Just to fix up on my last post when you set the cookie you must enter the expire argument. So for the purposes of the code given above, the line to set the cookie would be: // set the cookie to expire in a year(of course the next time the page loads, it may actually expire sooner) setcookie("cookie_name", "cookie value"."|".time(), 31536000); -- http://www.php.net/manual/en/function.setcookie.php http://master.php.net/manage/user-notes.php?action=edit+19456 http://master.php.net/manage/user-notes.php?action=delete+19456 http://master.php.net/manage/user-notes.php?action=reject+19456

« previous php.notes (#27144) next »