Thread: PHP Cookies
View Single Post
  #3  
Old 05-04-2009, 05:17 PM
welcomewiki welcomewiki is offline
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);
?>
Reply With Quote