nsICookie2 编辑

The nsICookie2 interface provides information about a cookie, and extends the nsICookie interface.

netwerk/cookie/nsICookie2.idlScriptable Please add a summary to this article.   Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)

Inherits from: nsICookie

Attributes

AttributeTypeDescription
creationTimePRInt64The creation time of the cookie, in microseconds since midnight (00:00:00), January 1, 1970 UTC. Read only.
expiryPRInt64The actual expiry time of the cookie, in seconds since midnight (00:00:00), January 1, 1970 UTC. (where 0 does not represent a session cookie). Read only.
isHttpOnlybooleantrue if the cookie is an http only cookie. Read only.
isSessionboolean

true if the cookie is a session cookie.

Note: That expiry time will also be honored for session cookies; thus, whichever is the more restrictive of the two will take effect. Read only.
lastAccessedPRInt64

The last time the cookie was accessed, in microseconds since midnight (00:00:00) on January 1, 1970 UTC. "Accessed" means creation, modification, or reading by the server.

Note: This time may be approximate. Read only.
rawHostAUTF8StringThe host (possibly fully qualified) of the cookie, without a leading dot to represent if it is a domain cookie. Read only.

See also

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

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

发布评论

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

词条统计

浏览:74 次

字数:3335

最后编辑:8年前

编辑次数:0 次

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