Public Attributes

nsICookie2 Interface Reference

Main cookie object interface for use by consumers: extends nsICookie, a frozen interface for external access of cookie objects. More...

import "nsICookie2.idl";

Inheritance diagram for nsICookie2:
Collaboration diagram for nsICookie2:

List of all members.

Public Attributes

readonly attribute AUTF8String rawHost
 the host (possibly fully qualified) of the cookie, without a leading dot to represent if it is a domain cookie.
readonly attribute boolean isSession
 true if the cookie is a session cookie.
readonly attribute PRInt64 expiry
 the actual expiry time of the cookie, in seconds since midnight (00:00:00), January 1, 1970 UTC.
readonly attribute boolean isHttpOnly
 true if the cookie is an http only cookie
readonly attribute PRInt64 creationTime
 the creation time of the cookie, in microseconds since midnight (00:00:00), January 1, 1970 UTC.
readonly attribute PRInt64 lastAccessed
 the last time the cookie was accessed (i.e.

Detailed Description

Main cookie object interface for use by consumers: extends nsICookie, a frozen interface for external access of cookie objects.


Member Data Documentation

readonly attribute PRInt64 nsICookie2::creationTime

the creation time of the cookie, in microseconds since midnight (00:00:00), January 1, 1970 UTC.

readonly attribute PRInt64 nsICookie2::expiry

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 boolean nsICookie2::isHttpOnly

true if the cookie is an http only cookie

readonly attribute boolean nsICookie2::isSession

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 PRInt64 nsICookie2::lastAccessed

the last time the cookie was accessed (i.e.

created, modified, or read by the server), in microseconds since midnight (00:00:00), January 1, 1970 UTC.

note that this time may be approximate.

readonly attribute AUTF8String nsICookie2::rawHost

the host (possibly fully qualified) of the cookie, without a leading dot to represent if it is a domain cookie.


The documentation for this interface was generated from the following file: