php remove cookie code example
Example 1: remove cookies php
unset($_COOKIE['hello']);
Example 2: php cookie
setcookie ('name', 'value', $expiresOn, $path, $domain, $secure, $httponly)
Example 3: php remove cookie
if (isset($_COOKIE['key'])) {
unset($_COOKIE['key']);
setcookie('key', '', time() - 3600, '/'); // empty value and old timestamp
}