setCookie()
Takes the name of a cookie and sets its value.
This function is valid in v2.0.0 to v2.24.1. This function has been downloaded 35 times.{path:'/'}
expires
property to a Date
object or the number representation of such a date. If you want to specify the maximum amount of seconds until the cookie expires you can set the maxAge
(or max-age
) property to the number of seconds. If you want to specify the hosts to which the cookie will be sent you can set the domain
property. If a domain is specified, subdomains are always included. If you want to specify the URL path that under which the cookie will be saved you can specify it in the path
property. If you want to set a secure cookie while on a secure site (https:
) you can set the secure
property to true
.This function directly requires the following function which is included automatically:
hasCookie()
This function is directly required by the following function:
removeCookie()