Forum Moderators: coopster
Warning: Cannot modify header information - headers already sent by
i understand this when you are doing redirects using code such as:
<?
header("Location: );
exit;
?>
but what i don't understand is what $_SESSION's and $_COOKIES have got to do with the headers.
when i do a session_start for example when the page has been redirected to by the method above it brings up the error. Although if i supress the error with an '@' the script functions perfectly...
David Middlehurst
Session management often involves the use of cookies. Cookies are sent along with the rest of the HTTP headers. Like other headers, cookies must be sent before any output from your script (this is a protocol restriction). Please see RFC2965 [faqs.org] for additional information on how HTTP cookies work.