WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsICookie

IID:E9FCB9A4-D376-458f-B720-E65E7DF593BC
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

nsCookieStatus STATUS_UNKNOWN = 0
nsCookieStatus STATUS_ACCEPTED = 1
nsCookieStatus STATUS_DOWNGRADED = 2
nsCookieStatus STATUS_FLAGGED = 3
nsCookieStatus STATUS_REJECTED = 4
nsCookiePolicy POLICY_UNKNOWN = 0
nsCookiePolicy POLICY_NONE = 1
nsCookiePolicy POLICY_NO_CONSENT = 2
nsCookiePolicy POLICY_IMPLICIT_CONSENT = 3
nsCookiePolicy POLICY_EXPLICIT_CONSENT = 4
nsCookiePolicy POLICY_NO_II = 5

Properties

readonly PRUint64 expires

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 AUTF8String host

The host (possibly fully qualified) of the cookie

readonly PRBool isDomain

True if the cookie is a domain cookie, false otherwise

readonly PRBool isSecure

True if the cookie was transmitted over ssl, false otherwise

readonly ACString name

The name of the cookie

readonly AUTF8String path

The path pertaining to the cookie

readonly nsCookiePolicy policy

readonly nsCookieStatus status

readonly ACString value

The cookie value


References

This interface is passed as an argument to the following methods:

nsICookiePromptService.cookieDialog

Reference documentation is generated from Mozilla's source.