10.7.6
I get the message 'Warning: Cannot send session cookie - headers already
sent...' or 'Cannot add header information - headers already sent...'.
The functions
header
,
setcookie
, and the session
functions need to add headers to the output stream but headers
can only be sent before all other content. There can be no output
before using these functions, output such as HTML. The function
headers_sent
will check if your script has already sent
headers and see also the Output Control
functions .
|