title: Cookies not updating in PHP
body: <p>Ok I have code that I have used for years and all of a sudden it stopped working and I have no idea how to fix</p>
  
  <p>first I log in and these cookies are set</p>
  
  <pre><code>setcookie ("memid", $login-&gt;id, strtotime("+1 day"), "/");
  setcookie ("package",  $login-&gt;package, strtotime("+1 day"), "/");
  setcookie ("website",  $login-&gt;domain, strtotime("+1 day"), "/");
  setcookie ("type",  'main', strtotime("+1 day"), "/");
  setcookie ("category",  $login-&gt;category, strtotime("+1 day"), "/");
  </code></pre>
  
  <p>This works fine now when I changing something and I update the values</p>
  
  <pre><code>setcookie ("website", $_GET['website'], strtotime("+1 day"), "/");
  setcookie ("type", $_GET['type'], strtotime("+1 day"), "/");
  </code></pre>
  
  <p>Now instead of updating the values of the previous cookies, it creates new cookies with same name new values.  I assume the first cookies set are still being read because nothing in my app changes.</p>
  
  <p>Even my logout script where I expire the cookies stopped working</p>
  
  <pre><code>setcookie('memid', '', time()-1000,"/");
  setcookie ("package", '', time()-1000,"/");
  setcookie ("website", '', time()-1000,"/");
  setcookie ("type", '', time()-1000,"/");
  setcookie ("account", '', time()-1000,"/");
  setcookie ("permissions", '', time()-1000,"/");
  setcookie ("category", '', time()-1000,"/");
  </code></pre>
  
  <p>Any ideas?</p>