All Vskills Certification exams are ONLINE now. You may take from any where any time | Please use #TOGETHER for 20% discount

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.