setcookie - missing info

From: Date: Thu, 18 Jul 2002 18:52:43 +0000
Subject: setcookie - missing info
Groups: php.doc.chm 
Request: Send a blank email to php-doc-chm+get-291@lists.php.net to get a copy of this message
Text online: setcookie() defines a cookie to be sent along with the rest of the header information. Cookies must be sent before any other headers are sent (this is a restriction of cookies, not PHP). This requires you to place calls to this function before any <html> or <head> tags. If headers exist prior to calling this function, setcookie() will fail and return FALSE. If setcookie() successfully runs, it will return TRUE This does not mean the user accepted the cookie or not. Text in CHM: setcookie() defines a cookie to be sent along with the rest of the header information. Cookies must be sent before any other headers are sent (this is a restriction of cookies, not PHP). This requires you to place calls to this function before any <html> or <head> tags. This is quite important, so it's no good to exclude from original manual... Best regards Denis Arh

« previous php.doc.chm (#291) next »