nsICookie 编辑
An optional interface for accessing the HTTP or javascript cookie object.
netwerk/cookie/nsICookie.idl
Scriptable Please add a summary to this article. Last changed in Gecko 1.7Inherits from: nsISupports
Attributes
Attribute | Type | Description |
expires | PRUint64 | Expiration 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. |
host | AUTF8String | The host (possibly fully qualified) of the cookie. Read only. |
isDomain | boolean | true if the cookie is a domain cookie, false otherwise. Read only. |
isSecure | boolean | true if the cookie was transmitted over ssl, false otherwise. Read only. |
name | ACString | The name of the cookie. Read only. |
path | AUTF8String | The path pertaining to the cookie. Read only. |
policy | nsCookiePolicy | Holds the sites compact policy value. Read only. |
status | nsCookieStatus | Holds the P3P status of cookie. Read only. |
value | ACString | The cookie value. Read only. |
Constants
Constant | Value | Description |
STATUS_UNKNOWN | 0 | The cookie collected in a previous session, and its information no longer exists. available |
STATUS_ACCEPTED | 1 | The cookie was accepted. |
STATUS_DOWNGRADED | 2 | The cookie was accepted but downgraded to a session cookie. |
STATUS_FLAGGED | 3 | The cookie was not accepted. |
STATUS_REJECTED | 4 | The cookie was rejected. |
POLICY_UNKNOWN | 0 | The cookie collected in a previous session, and its information no longer available. |
POLICY_NONE | 1 | The site did not send a compact policy along with the cookie. |
POLICY_NO_CONSENT | 2 | The site collects identifiable information without user involvement. |
POLICY_IMPLICIT_CONSENT | 3 | The site collects identifiable information unless user opts out. |
POLICY_EXPLICIT_CONSENT | 4 | The site does not collect identifiable information unless user opts in. |
POLICY_NO_II | 5 | The site does not collect identifiable information. |
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论