How to Expire a Cookie at Midnight using PHP
One line of code:
setcookie("CookieName", "CookieValue", mktime(23, 59, 59, date("m"), date("d"), date("y")));
Written by Tim on October 25th, 2006 with
27 comments.
Read more articles on php.
- [+] Digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article
#2. February 25th, 2011, at 1:39 AM.
Good work,hope your blog be better!I just want to make a blog like this!