title: The cookie value not removed in php
body: <p>I am new to php, but I have 2 years experience in asp.net. When I am calling logout.php It doesn't doesn't removed the cookie values.</p>
  
  <pre><code>&lt;?php
  
  if (isset($_COOKIE['C_username'])) {
  
    unset($_COOKIE["C_username"]);
    unset($_COOKIE["C_password"]);
  
  
    setcookie("C_username", '', time() - 3600);
    setcookie("C_password", '', time() - 3600);
  
  }
  
  echo "&lt;script&gt;alert('".$_COOKIE["C_username"]."');&lt;/script&gt;" ; //Here the cookie value is found.
  
  header( 'Location: ../index.php');
  ?&gt;
  </code></pre>
  
  <p>After redirecting to another index.php, there also the cookie found.</p>