Cookie Type
Constructors
| Constructor |
Description
|
Full Usage:
Cookie(name, value, sameSite, ?domain, ?hostOnly, ?path, ?secure, ?httpOnly, ?session, ?expirationDate)
Parameters:
string
-
The name of the cookie.
value : string
-
The value of the cookie.
sameSite : SameSite
-
The Same Site policy applied to this cookie. Can be unspecified, no_restriction, lax or strict.
?domain : string
-
The domain of the cookie; this will be normalized with a preceding dot so that it's also valid for
subdomains.
?hostOnly : bool
-
Whether the cookie is a host-only cookie; this will only be true if no domain was passed.
?path : string
-
The path of the cookie.
?secure : bool
-
Whether the cookie is marked as secure.
?httpOnly : bool
-
Whether the cookie is marked as HTTP only.
?session : bool
-
Whether the cookie is a session cookie or a persistent cookie with an expiration date.
?expirationDate : double
-
The expiration date of the cookie as the number of seconds since the UNIX epoch. Not provided for session
cookies.
Returns: Cookie
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.domain
|
The domain of the cookie; this will be normalized with a preceding dot so that it's also valid for subdomains. |
Full Usage:
this.expirationDate
|
The expiration date of the cookie as the number of seconds since the UNIX epoch. Not provided for session cookies. |
Full Usage:
this.hostOnly
|
Whether the cookie is a host-only cookie; this will only be true if no domain was passed. |
Full Usage:
this.httpOnly
|
Whether the cookie is marked as HTTP only. |
Full Usage:
this.name
|
The name of the cookie. |
Full Usage:
this.path
|
The path of the cookie. |
Full Usage:
this.sameSite
|
The Same Site policy applied to this cookie. Can be unspecified, no_restriction, lax or strict. |
Full Usage:
this.secure
|
Whether the cookie is marked as secure. |
Full Usage:
this.session
|
Whether the cookie is a session cookie or a persistent cookie with an expiration date. |
Full Usage:
this.value
|
The value of the cookie. |
fable-electron-docs-api