Certified PHP Developer Learning Resources Expiring Cookies

Expiring Cookies

/* Remove Cookies */
// set the expiration date to one hour ago
SETCOOKIE ("TestCookie", "", TIME() - 3600);
SETCOOKIE ("TestCookie", "", TIME() - 3600, "/~rasmus/", ".utoronto.ca", 1);

To remove a cookie happens simply by resetting the cookie. Instead of setting the cookie the value for time will be put to minus value for the previous plus value.

 For Support