Methods
-
<static> get(key) → {String}
-
Gets the cookie value for the given name.
Parameters:
Name Type Description keyString 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 keyString The cookie name.
domainString <optional>
The domain in which the cookie value is stored.
pathString <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 keyString The cookie name.
valueString The cookie value.
expirehoursNumber <optional>
The expire hours.
domainString <optional>
The domain to store a cookie value.
pathString <optional>
The path to store a cookie value.