- Source:
Methods
(static) clear(name)
Clear a cookie.
Parameters:
Name | Type | Description |
---|---|---|
name |
String | cookie name |
- Source:
(static) get(name, def) → (nullable) {String}
Return the value of a cookie.
Parameters:
Name | Type | Description |
---|---|---|
name |
String | cookie name |
def |
* | default value to return if cookie not found |
- Source:
Returns:
- Type
- String
(static) set(name, value, validDaysopt)
Set the value of a cookie, optionally indicating a validity period.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
String | cookie name |
|
value |
String | cookie value |
|
validDays |
Number |
<optional> |
number of days of validity; defaults to |
- Source: