Site Cloner PHP Script
Bargain Hunter PHP Script
Job Hunter PHP Script
Site Login and Access Control PHP Script

Destroy Cookie PHP

To remove a cookie from the browser,
1) Set a date that is expired.
The setCookie() function below creates a cookie with a date in the past; thus it is eliminated.
setcookie(“my_cookie”, $var, time()- 7200, “/”);

The setCookie() function below creates a cookie with a date at that instant; thus it is gone virtually the same time it is created.
setcookie(“firstnm”, $firstname, time() + 0, “/”, ‘.mysite.com’);