Methods
-
<static> get(key) → {String}
-
Gets the cookie value for the given name.
Parameters:
Name Type Description key
String The cookie name.
Returns:
The cookie value.
- Type
- String
-
<static> remove(key, domain, path)
-
Removes the cookie value for the given name.
Parameters:
Name Type Argument Description key
String The cookie name.
domain
String <optional>
The domain in which the cookie value is stored.
path
String <optional>
The path in which the cookie value is stored.
-
<static> set(key, value, expirehours, domain, path)
-
Sets the cookie value for the given name to the cookie.
Parameters:
Name Type Argument Description key
String The cookie name.
value
String The cookie value.
expirehours
Number <optional>
The expire hours.
domain
String <optional>
The domain to store a cookie value.
path
String <optional>
The path to store a cookie value.