Method get
Gets a cookie
Parameters:
name must be a String.
(Name of the cookie to get)
jar must be a String.
([Optional] Cookie jar, defaults to document.cookie)
Returns a Mixed
(Cookie or undefined)
Method list
Gets the cookies for the domain
Parameters:
Returns an Object
(Collection of cookies)
Method set
Creates a cookie The offset specifies a positive or negative span of time as day, hour, minute or second
Parameters:
name must be a String.
(Name of the cookie to create)
value must be a String.
(Value to set)
offset must be a String.
(A positive or negative integer followed by "d", "h", "m" or "s")
domain must be a String.
([Optional] Domain to set the cookie for)
secure must be a Boolean.
([Optional] Make the cookie only accessible via SSL)
path must be a String.
([Optional] Path the cookie is for)
jar must be a String.
([Optional] Cookie jar, defaults to document.cookie)
Returns an Undefined
(undefined)
Method expire
Parameters:
name must be a String.
(Name of the cookie to expire)
domain must be a String.
([Optional] Domain to set the cookie for)
secure must be a Boolean.
([Optional] Make the cookie only accessible via SSL)
path must be a String.
([Optional] Path the cookie is for)
jar must be a String.
([Optional] Cookie jar, defaults to document.cookie)
Returns a String
(Name of the expired cookie)