A small cookie utility for getting, setting, and deleting cookies
Initializes cookie-crisp. Can optionally pass in a reference to document
that differs from window.document
.
Returns a cookie value given a cookie name. By default, the cookie value is decoded before being returned.
Sets a cookie given a key, value, and a set of options:
Path to write cookie (default being /
).
Days from now that you would like the cookie to expire.
Available if you would like to pass your own GMT expiration date.
Whether or not the cookie key/value should be encoded before being set.
Shortcut for setting a cookie's expiration to Thu, 01 Jan 1970 00:00:01 GMT
.