This is not correct.
Both the setcookie() and header() functions manipulate the HTTP headers
in the response. You cannot have output prior to any function that
manipulates headers - that's the limitation. These two functions work
fine together in any order; it's prior output that will cause an
thanks, I already thought so
I'll check it out!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I have one more than one occasion run into the problem of "headers already
sent" when I was using the header function in combination with cookies.
What is the right way of doing it?
http://www.php.net/manual/en/function.ob-start.php
HTH!
Jay
--
PHP General Mailing List (http://www.php.
3 matches
Mail list logo