note 19456 deleted from function.setcookie by irc-html

From: Date: Mon, 06 May 2002 23:26:55 +0000
Subject: note 19456 deleted from function.setcookie by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-30274@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);

« previous php.notes (#30274) next »