Possible Duplicate:
Headers already sent by PHP
I know that I must use session_start()
at the very top of the page, so the HTTP header can do his job before the HTTP body was started to send to the client. But it doesn't work well for me.
Here, I want to reset the session...
<?php
ini_set( "display_errors", 0); // Even without this it doesn't work, it's temporary to hide the problem
session_start();
$_SESSION = array(); // Clear the session
$_SESSION['state'] = "noConnection";
?>
<!DOCTYPE html>
<html>
<head> // blah blah