title: PHP Secure Log in / Log Out: Log Out Issue
body: <p>I have a PHP login / logout system. The code for the logout is as follows:</p>
  
  <pre><code>if($_POST['submit']=='logOut')
  {
      setcookie('userName','', time()-60*60*24*100);
      setcookie('login','', time()-60*60*24*100);
      header("Location: index.php");
      exit;
  }
  </code></pre>
  
  <p>Users are being checked for login status via the following:</p>
  
  <pre><code>&lt;?php
  if(!$_COOKIE['login']):
  // If you are not logged in
  ?&gt;
  </code></pre>
  
  <p>As far as I can tell, this should log the user out, but it doesn't seem to do so. The site can be viewed at novabvuild.comlu.com, and default login information can be used (admin, admin). This way you folks can see the issue. Login seems to work fine, but the logout doesn't run properly.</p>
  
  <p>Thanks in advance!</p>