Cookie::remove()
Remove a cookie
Cookie::remove(string $key): bool
Parameters
Name | Type | Default | Description |
---|---|---|---|
$keyrequired | string |
no default value | The name of the cookie |
Return type
bool
true: the cookie has been removed, false: the cookie could not be removed
Parent class
Examples
// mycookie is now gone
Cookie::remove('mycookie');