Main cookie object interface for use by consumers: extends nsICookie, a frozen interface for external access of cookie objects
[scriptable, uuid(8587f4e0-870c-11dd-ad8b-0800200c9a66)]
interface nsICookie2 : nsICookie
Attributes
the creation time of the cookie, in microseconds since midnight (00:00:00), January 1, 1970 UTC.
readonly attribute
PRInt64
creationTime
the 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 attribute
PRInt64
expiry
true if the cookie is an http only cookie
readonly attribute
boolean
isHttpOnly
true 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 attribute
boolean
isSession
the host (possibly fully qualified) of the cookie, without a leading dot to represent if it is a domain cookie.
readonly attribute
AUTF8String
rawHost
Compare to: