- Source:
Methods
removeCookie(name, optionsopt, nullable) → {Boolean}
Removes a cookie (if possible) by name.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
String | the name of the cookie to remove |
|
options |
Cookies.CookieOptions |
<optional> <nullable> |
the cookie options to apply (needed for different paths/domains for example) |
- Source:
- See:
Returns:
true if cookie is not available anymore after removal, if this is false, cookie removal failed or another cookie of the same name is still available
- Type
- Boolean
Example
removeCookie('mykittencookie', {path : '/kittens'});