Method: cookie::remove
Remove a cookie
Info
Syntax
cookie::remove($key, $domain='/')
Parameters
- $key (string) The name of the cookie
- $domain (string) The domain of the cookie
Return (mixed)
true: the cookie has been removed, false: the cookie could not be removed
Example
cookie::remove('mycookie');
// mycookie is now gone