Forum Moderators: coopster
Setting the cookie:
setcookie("cookiename", "cookie value", $expdate);
Clearing the cookie:
setcookie("cookiename", "", $expdate);
This will "erase" the value of the cookie while allowing it to remain persistent. To cause it to become a volatile cookie, eliminated when the browser is closed, also set the $expdate value to "".