I am trying to set up a session and I get a header error, let me know as far as I can tell, I tell him to start a session before sending the header. any help here would be helpful.
<?php ob_start(); session_start(); $_SESSION['active'] = 1; ob_end_flush(); ?> <html> <body> 2009c Christ Redeemer Catholic Church </body> </html>
Warning: session_start () [function.session-start]: Unable to send session cookie - headers already sent (output started in / home / content / k / u / r / kuriomister / html / temp / church / index. Php: 1) in /home/content/k/u/r/kuriomister/html/temp/church/index.php on line 3
Warning: session_start () [function.session-start]: Unable to send session cache limiter - headers already sent (the output is started in / home / content / k / u / r / kuriomister / html / temp / church / index. Php: 1) in /home/content/k/u/r/kuriomister/html/temp/church/index.php on line 3
source share