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 error.
Chris
Jay Blanchard wrote:
Well, if you send headers first you cannot send cookies, if you send cookies first you cannot send headers.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php