When I want to remove a Cookie I try
unset($_COOKIE[\'hello\']);
I see in my cookie browser from firefox that the cookie still exists. How
A clean way to delete a cookie is to clear both of $_COOKIE value and browser cookie file :
$_COOKIE
if (isset($_COOKIE['key'])) { unset($_COOKIE['key']); setcookie('key', '', time() - 3600, '/'); // empty value and old timestamp }