nsICookie 编辑

An optional interface for accessing the HTTP or javascript cookie object.

netwerk/cookie/nsICookie.idlScriptable Please add a summary to this article.   Last changed in Gecko 1.7

Inherits from: nsISupports

Attributes

AttributeTypeDescription
expiresPRUint64Expiration 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. Read only.
hostAUTF8StringThe host (possibly fully qualified) of the cookie. Read only.
isDomainbooleantrue if the cookie is a domain cookie, false otherwise. Read only.
isSecurebooleantrue if the cookie was transmitted over ssl, false otherwise. Read only.
nameACStringThe name of the cookie. Read only.
pathAUTF8StringThe path pertaining to the cookie. Read only.
policynsCookiePolicyHolds the sites compact policy value. Read only.
statusnsCookieStatusHolds the P3P status of cookie. Read only.
valueACStringThe cookie value. Read only.

Constants

ConstantValueDescription
STATUS_UNKNOWN0The cookie collected in a previous session, and its information no longer exists. available
STATUS_ACCEPTED1The cookie was accepted.
STATUS_DOWNGRADED2The cookie was accepted but downgraded to a session cookie.
STATUS_FLAGGED3The cookie was not accepted.
STATUS_REJECTED4The cookie was rejected.
POLICY_UNKNOWN0The cookie collected in a previous session, and its information no longer available.
POLICY_NONE1The site did not send a compact policy along with the cookie.
POLICY_NO_CONSENT2The site collects identifiable information without user involvement.
POLICY_IMPLICIT_CONSENT3The site collects identifiable information unless user opts out.
POLICY_EXPLICIT_CONSENT4The site does not collect identifiable information unless user opts in.
POLICY_NO_II5The site does not collect identifiable information.

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:97 次

字数:5089

最后编辑:6年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文