Extends
Methods
# get(key) → {*}
Retrieve a stored value from the cookie.
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
The key of the value that you want to retrieve the value from. |
- The value of the key.
null
will be returned if the key does not exist.
*
# set(key, value)
Set a key-value pair into the cookie.
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
the key to store the value to |
value |
*
|
the value to store |
# unset(key)
to unset the variable
Parameters:
Name | Type | Description |
---|---|---|
key |
String
|
the key to store the value to |