Thread
:
PHP Cookies
View Single Post
#
3
05-04-2009, 05:17 PM
welcomewiki
Member
Join Date: Dec 2008
Location: India
Posts: 80,534
How to Delete a Cookie?
When deleting a cookie you should assure that the expiration date is in the past.
Delete example:
// set the expiration date to one hour ago
setcookie("user", "", time()-3600);
?>
welcomewiki
View Public Profile
Send a private message to welcomewiki
Visit welcomewiki's homepage!
Find all posts by welcomewiki