nsICookie
From MDC
The nsICookie interface provides a means of accessing information stored in the HTTP or JavaScript cookie object.
Contents |
nsICookie is defined in netwerk/cookie/public/nsICookie.idl. It is scriptable and
has been frozen since Mozilla 1.9.
Inherits from: nsISupports
[edit] Attributes
| Attribute | Type | Description |
name
| ACString
| The name of the cookie. Read only. |
value
| ACString
| The cookie value. Read only. |
isDomain
| boolean
| True if the cookie is a domain cookie, false otherwise. Read only. |
host
| AUTF8String
| The host (possibly fully qualified) of the cookie. Read only. |
path
| AUTF8String
| The path pertaining to the cookie. Read only. |
isSecure
| boolean
| True if the cookie was transmitted over ssl, false otherwise. Read only. |
expires
| PRUint64
| Expiration time (local timezone) expressed as number of seconds since Jan 1, 1970. Read only. |
status
| nsCookieStatus
| Holds the P3P status of cookie. Read only. |
policy
| nsCookiePolicy
| Holds the site's compact policy value. Read only. |
[edit] 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 name of the cookie. Read only. |
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 |