Deprecated since 3.x
Create, Read and Deletes cookies.
import { cookies } from "@runroom/purejs";
The get method returns the cookie value if exists, otherwise it returns an empty value.
The set method created a cookie. Parameters are name
(string),
Parameters | Description |
---|---|
name | {string} * Mandatory. The name for the cookie. |
value | {n} The value can be any type of value. Default is 1 |
days | {integer} The days that the cookie will be available, by default is one year because of legal issues. Default is 365 |
The remove method removes the created cookie.