getNamedCookie
Retrieves cookie for the current domain by given name.
getNamedCookie(name)
#
Parametersname
: Name of the cookie
#
Returns- A
map
representing the cookie or no value if it's not found. Following describes keys and the corresponding values in cookiemap
:name
: Name of cookie asstring
value
: Value of cookie asstring
path
: Path of cookie asstring
domain
: Host name of cookie asstring
expiry
: Remaining cookie expiration time in millisecondssecure
:boolean
indicatingsecure
status of cookiehttpOnly
:boolean
indicatinghttpOnly
status of cookie
#
Examplecookie = getNamedCookie(my-cookie)print(cookie)/*Prints following:{ name: my-cookie, value: 1199, path: /, domain: example.com, expiry: 3600000, secure: true, httpOnly: false}*/