Quote:Actually, there is not a way to directly delete a cookie. Just use setcookie with expiration date in the past, to trigger the removal mechanism in your browser. PHP $cookie_name = 'pontikis_net_php_cookie'; unset($_COOKIE[$cookie_name]); // empty value and expiration one hour before $res = setcookie($cookie_name, '', time() - 3600);
$cookie_name = 'pontikis_net_php_cookie'; unset($_COOKIE[$cookie_name]); // empty value and expiration one hour before $res = setcookie($cookie_name, '', time() - 3600);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)