title: PHP sessions seems to be in conflict with CSS rules
body: <p>I'm really confused! I've this php file in which i placed this script for redirect the user to the main page in case he haven't logged-in</p>
  
  <pre><code>&lt;?php 
  
  session_start();
  if(!isLogged())
  {
       header("location: mainarea.php");
       exit;  
  }
  
  function isLogged()
  {return $_SESSION;}
  
  ?&gt;
  </code></pre>
  
  <p>The page always worked but yesterday i've added this css rule in the same php file:</p>
  
  <pre><code>#deleteThumb
  {
      position:absolute; top:10px; right:10px; width:20px; height:40px; left:320px;
  }
  </code></pre>
  
  <p>And the redirection won't work anymore!!!! All what is placed before the php session control is rendered, after it, nothing Why? It's seems a bug of the php, i've not other explainations</p>
  
  <p><strong>UPDATE:</strong> Placing the session at the first line og the script, all return to work!</p>
  
  <p>Anyway this is a real mistery!!
  for exemple, this always worked: </p>
  
  <pre><code>&lt;style&gt;
      #wrapper{width:1000px; margin-right:auto; margin-left:auto; padding-top:70px;}
  &lt;/style&gt;
  
      &lt;/head&gt;
      &lt;body&gt;
      &lt;?php session_start();
      if(!isLogged())
      {
           header("location: mainarea.php");
           exit;  
      }
  
      function isLogged()
      {return $_SESSION;} ?&gt;
  </code></pre>
  
  <p>This istead don't work</p>
  
  <pre><code>&lt;style&gt;
      #wrapper{width:1000px; margin-right:auto; margin-left:auto; padding-top:70px;}
      #deleteThumb{position:absolute; top:10px; right:10px; width:20px; height:40px; left:320px;}
    &lt;/style&gt;
  
      &lt;/head&gt;
      &lt;body&gt;
      &lt;?php session_start();
      if(!isLogged())
      {
           header("location: areanegozianti.php");
           exit;  
      }
  
      function isLogged()
      {return $_SESSION;} ?&gt;
  </code></pre>