title: Session not destroying?
body: <p>Whenever I try to log in with a different user, I see that the username hasn't changed, it means $_SESSION['username'] haven't changed either, so what's wrong in my logout.php script?</p>
  
  <pre><code>&lt;?php 
  session_start();
  $_SESSION = array(); 
  session_unset();
  session_destroy();
  ob_start();
  ob_end_flush();
  
  header("location:index.php");
  ?&gt;
  </code></pre>