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.

nsICookie2

IID:736619fe-8d09-4e59-8223-32f176c22977
Inherits From:nsICookie

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


Properties

readonly PRInt64 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 PRBool isHttpOnly

True if the cookie is an http only cookie

readonly PRBool 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 AUTF8String rawHost

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


References

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

nsICookieManager2.cookieExists, nsICookiePermission.canSetCookie

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com