I copied code (an entire .php file) directly from an online tutorial and received the following error message:
"Warning: Cannot send session cookie - headers already sent by (output started ... on line 14"
Line 14 is simply "session_start();"
The php faq says "... headers can only be sent before all other content, check if your script is sending headers after having already sent content." And, I fix this how?
I have gotten the same or similar messages everytime I have tried to use sessions, even when using code straight from the PHP site.