title: JS - Delete All Cookies, not working
body: <p><br>
  I have this code that wont delete all of my cookies, any idea y?<br>
  Thanks  </p>
  
  <pre><code>    var cookies = document.cookie.split(";");
  
  for (var i = 0; i &lt; cookies.length; i++) {
      var cookie = cookies[i];
      var eqPos = cookie.indexOf("=");
      var name = eqPos &gt; -1 ? cookie.substr(0, eqPos) : cookie;
      document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
  }
  </code></pre>