All exams are online now due to COVID related precautions | Download the app or write to us at

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/", "", 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.