delete_cookie($name[, $domain = ''[, $path = '/'[, $prefix = '']]])
Parameters:
$name (string) – Cookie name
$domain (string) – Cookie domain (usually: .yourdomain.com)
$path (string) – Cookie path
$prefix (string) – Cookie name prefix Return type:
void
Lets you delete a cookie. Unless you’ve set a custom path or other values, only the name of the cookie is needed.
delete_cookie('name');
This function is otherwise identical to set_cookie(), except that it does not have the value a