Deleteing Cookies in NS...
| From: | Martin Thoma | Date: | Wed, 06 Sep 2000 10:19:30 +0000 |
| Subject: | Deleteing Cookies in NS... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15483@lists.php.net to get a copy of this message | ||
Hi !
I set a cookie with:
function setMyCookie($name, $value, $hrsToLive)
{ global $SERVER_NAME;
setCookie($name, $value, time()+60*60*$hrsToLive, "/", $SERVER_NAME,
0);
}
I delete it with:
function killCookie($name)
{ global $SERVER_NAME;
setCookie($name, "", 0, "/", $SERVER_NAME, 0);
}
This works fine on IE and with NS when I test it locally (Apache on
Win98, PHP 4.0.1pl2). When uploading it (on Apache, Linus, PHP
4.0.1pl2), NS will not delete the cookie. Why ?
Regards
Martin