A quotation from this page reads as follows:
"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 is inaccurate. It is not necessary that cookies be sent prior to
other HTTP headers. Not only is this not a "restriction of cookies,"
this is also not a restriction of PHP.
I think the statement means to refer to the fact that cookies, like any
other HTTP header, must come prior to any output.
If someone could correct this (I only know that this statement exists in the
English version of the manual, though it has possibly been translated to
others), it would be helpful. Or, if someone wants to grant me
(shiflett) the karma, I can do it.
Chris
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Re: [PHP-DOC] http://www.php.net/manual/en/function.setcook... Chris Shiflett
- Re: [PHP-DOC] http://www.php.net/manual/en/function.se... Rasmus Lerdorf