note 19265 deleted from function.setcookie by john
| From: | john@php.net | Date: | Sat, 30 Nov 2002 16:30:08 +0000 |
| Subject: | note 19265 deleted from function.setcookie by john | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-40166@lists.php.net to get a copy of this message | ||
About the post above which states setcookie("cookiename); isn't working for unsetting
cookies on client, it's a php bug in versions 4.1.0 and 4.1.1. The fix presented
setcookie("cookiename", time() - 3600) seems to work, while better yet is raising 3600 to
360000 or some huge value, since clocks misadjusted on client or server may not work (cookies are
deleted when time is set to past, but the client and server clocks may disagree about what time is
it right now).