Readonly
creationReadonly
expiresuse nsICookie.expiry and nsICookie.isSession instead.
expiration time in seconds since midnight (00:00:00), January 1, 1970 UTC. expires = 0 represents a session cookie. expires = 1 represents an expiration time earlier than Jan 1, 1970.
Readonly
expirythe actual expiry time of the cookie, in seconds since midnight (00:00:00), January 1, 1970 UTC.
this is distinct from nsICookie::expires, which has different and obsolete semantics.
Readonly
hostthe host (possibly fully qualified) of the cookie
Readonly
istrue if the cookie is a domain cookie, false otherwise
Readonly
istrue if the cookie is an http only cookie
Readonly
istrue if the cookie was transmitted over ssl, false otherwise
Readonly
istrue if the cookie is a session cookie. note that expiry time will also be honored for session cookies (see below); thus, whichever is the more restrictive of the two will take effect.
Readonly
lastthe last time the cookie was accessed (i.e. created, modified, or read by the server), in microseconds since midnight (00:00:00), January 1, 1970 UTC.
note that this time may be approximate.
Readonly
namethe name of the cookie
Readonly
originThe origin attributes for this cookie
Readonly
paththe path pertaining to the cookie
Readonly
rawthe host (possibly fully qualified) of the cookie, without a leading dot to represent if it is a domain cookie.
Readonly
samethe SameSite attribute; this controls the cookie behavior for cross-site requests as per https://tools.ietf.org/html/draft-west-first-party-cookies-07
This should be one of:
Readonly
schemeBitmap of schemes.
Readonly
valuethe cookie value
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Generated using TypeDoc
the creation time of the cookie, in microseconds since midnight (00:00:00), January 1, 1970 UTC.