Posted by macca on 06/23/07 01:05
As we have establisted, this error is caused by sending information to
the browser before sending some header information such as a session
start.
if it works on your first visit but not on subsequesnt ones then you
must be sending some information to the browser before your header
info in that conditional statement.
remember:
NO OUTPUT BEFORE HEADERS
no line breaks,
no white space,
nothing.
(and definately no HTML!)
Dont have the session_start() function in your include file if you
call it from the initial script.
You could also check to see if the session is started already by using
the isset() construct.
hope this is of some help.
Navigation:
[Reply to this message]
|