[scriptable, uuid(e9fcb9a4-d376-458f-b720-e65e7df593bc)]
interface nsICookie : nsISupports

Constants

 @DEPRECATED status implementation will return STATUS_UNKNOWN in all cases.
const nsCookieStatus STATUS_UNKNOWN = 0

          
const nsCookieStatus STATUS_ACCEPTED = 1

          
const nsCookieStatus STATUS_DOWNGRADED = 2

          
const nsCookieStatus STATUS_FLAGGED = 3

          
const nsCookieStatus STATUS_REJECTED = 4
 @DEPRECATED policy implementation will return POLICY_UNKNOWN in all cases.
const nsCookiePolicy POLICY_UNKNOWN = 0

          
const nsCookiePolicy POLICY_NONE = 1

          
const nsCookiePolicy POLICY_NO_CONSENT = 2

          
const nsCookiePolicy POLICY_IMPLICIT_CONSENT = 3

          
const nsCookiePolicy POLICY_EXPLICIT_CONSENT = 4

          
const nsCookiePolicy POLICY_NO_II = 5

Attributes

 @DEPRECATED use nsICookie2.expiry and nsICookie2.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 attribute PRUint64 expires
 the host (possibly fully qualified) of the cookie
readonly attribute AUTF8String host
 true if the cookie is a domain cookie, false otherwise
readonly attribute boolean isDomain
 true if the cookie was transmitted over ssl, false otherwise
readonly attribute boolean isSecure
 the name of the cookie
readonly attribute ACString name
 the path pertaining to the cookie
readonly attribute AUTF8String path

          
readonly attribute nsCookiePolicy policy

          
readonly attribute nsCookieStatus status
 the cookie value
readonly attribute ACString value