Read cookie
Read all available cookies
Returns the parsed representation of the string stored in the cookie according to JSON.parse
Returns the parsed representation of all cookies according to JSON.parse
If there is any danger of a conflict with the namespace Cookies, the noConflict method will allow you to define a new namespace and preserve the original one. This is especially useful when running the script on third party sites e.g. as part of a widget or SDK. Note: The noConflict method is not necessary when using AMD or CommonJS, thus it is not exposed in those environments.
Delete cookie
Create a cookie
Create a new instance of the api that overrides the default decoding implementation. All methods that rely in a proper decoding to work, such as Cookies.remove() and Cookies.get(), will run the converter first for each cookie. The returned string will be used as the cookie value.
Generated using TypeDoc
Allows default cookie attributes to be accessed, changed, or reset