An optional interface for accessing the HTTP or javascript cookie object.

netwerk/cookie/nsICookie.idlScriptable
Please add a summary to this article.
  Last changed in Gecko 1.7

Inherits from: nsISupports

Attributes

Attribute Type Description
expires PRUint64 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. Read only.
host AUTF8String The host (possibly fully qualified) of the cookie. Read only.
isDomain boolean true if the cookie is a domain cookie, false otherwise. Read only.
isSecure boolean true if the cookie was transmitted over ssl, false otherwise. Read only.
name ACString The name of the cookie. Read only.
path AUTF8String The path pertaining to the cookie. Read only.
policy nsCookiePolicy Holds the sites compact policy value. Read only.
status nsCookieStatus Holds the P3P status of cookie. Read only.
value ACString The cookie value. Read only.

Constants

Constant Value Description
STATUS_UNKNOWN 0 The cookie collected in a previous session, and its information no longer exists. available
STATUS_ACCEPTED 1 The cookie was accepted.
STATUS_DOWNGRADED 2 The cookie was accepted but downgraded to a session cookie.
STATUS_FLAGGED 3 The cookie was not accepted.
STATUS_REJECTED 4 The cookie was rejected.
POLICY_UNKNOWN 0 The cookie collected in a previous session, and its information no longer available.
POLICY_NONE 1 The site did not send a compact policy along with the cookie.
POLICY_NO_CONSENT 2 The site collects identifiable information without user involvement.
POLICY_IMPLICIT_CONSENT 3 The site collects identifiable information unless user opts out.
POLICY_EXPLICIT_CONSENT 4 The site does not collect identifiable information unless user opts in.
POLICY_NO_II 5 The site does not collect identifiable information.

See also