Why can't I delete this cookie?
<p>From PHP, I'm having trouble getting the browser to delete a cookie. To chase down the problem, I have created a simple test page that just does this:</p>

<pre><code>// Set cookie named MrPants with value foo to expire at end of session
setcookie("MrPants", "foo", 0);
</code></pre>

<p>After loading that page, I see the cookie in my Firefox cookies menu. So far, so good.</p>

<p>Then I follow <a href="http://php.net/manual/en/function.setcookie.php" rel="nofollow">example #2 here</a> to delete a cookie:</p>

<pre><code>// Set that cookie's expires time in the past
setcookie("MrPants", "", time() - 3600);
</code></pre>

<p>This has no effect. I have tried specifying the path, too; no change.</p>

<p>In Firebug, I see the following in the response headers:</p>

<pre><code>Set-Cookie ZDEDebuggerPresent=php,phtml,php3; path=/ 
MrPants=deleted; expires=Tue, 25-Aug-2009 15:27:46 GMT; path=/some/path
</code></pre>

<p>What am I missing here?</p>
