Cookie Class
Cookie data-structure
Constructor
Item Index
Methods
getDomain
()
String | Undefined
(Optional) The domain the cookie is visible to. Direct-access. No need to wait.
Returns:
getExpiry
()
Number | Undefined
(Optional) When the cookie expires, specified in seconds since midnight, January 1, 1970 UTC. Direct-access. No need to wait.
Returns:
getPath
()
String | Undefined
(Optional) The cookie path. Direct-access. No need to wait.
Returns:
isHttpOnly
()
Boolean | Undefined
(Optional) Whether the cookie is an httpOnly cookie. Direct-access. No need to wait.
Returns:
isSecure
()
Boolean | Undefined
(Optional) Whether the cookie is a secure cookie. Direct-access. No need to wait.
Returns:
setDomain
-
domain
Set the domain the cookie is visible to. Direct-access. No need to wait.
Parameters:
-
domain
String
setExpiry
-
expiry
Set when the cookie expires, specified in seconds since midnight, January 1, 1970 UTC. Direct-access. No need to wait.
Parameters:
-
expiry
Number
setHttpOnly
-
httpOnly
Set whether the cookie is an httpOnly cookie. Direct-access. No need to wait.
Parameters:
-
httpOnly
Boolean
setSecure
-
secure
Set whether the cookie is a secure cookie. Direct-access. No need to wait.
Parameters:
-
secure
Boolean
validate
-
[completed=false]
Validate the cookie data
Parameters:
-
[completed=false]
Boolean optional