Cookies - Firefox Developer Tools 编辑

When you select an origin inside the Cookies storage type from the storage tree, all the cookies present for that origin will be listed in a table. The cookies table has the following columns:

  • Name — The name of the cookie.
  • Value — The value of the cookie.
  • Domain — The domain of the cookie.
  • Path — The path property of the cookie.
  • Expires / Max-Age — The time when the cookie will expire. If the cookie is a session cookie, the value of this column will be "Session"
  • Size — The size of the cookie name plus value in bytes.
  • HttpOnly — Is this cookie HTTP only?
  • Secure — Is this cookie a secure cookie?
  • SameSite — Is this cookie a same-site cookie? Same-site cookies allow servers to mitigate the risk of CSRF and information leakage attacks by asserting that a particular cookie should only be sent with requests initiated from the same registrable domain.
  • Last accessed — Date and time when the cookie was last read.
  • Created — Date and time when the cookie was created.
  • HostOnly — Is this cookie a domain cookie? That is, the domain value matches exactly the domain of the current website.

Note: Some of the columns are not shown by default — to change the column display, right-click on the existing table headings and use the resulting context menu to show/hide the columns.

You can edit cookies by double-clicking inside cells in the Table Widget and editing the values they contain, and add new cookies by clicking the "Plus" (+) button and then editing the resulting new row to the value you want.

Context menu

The context menu for each cookie includes the following commands:

  • Add item - add a new cookie.
  • Delete <cookie name>.<domain> - deletes the selected cookie
  • Delete All From <domain> - deletes all cookies from the selected domain. This must be an exact match. For example, if you select "Delete All From test8.example.com" only cookies from that domain will be deleted. Cookies from "test13.example.com" will not be deleted.
  • Delete All - deletes all cookies for the current host.
  • Delete All Session Cookies - deletes all cookies for the current host that are scheduled to be deleted when the browser shuts down

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

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

发布评论

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

词条统计

浏览:51 次

字数:3001

最后编辑:7 年前

编辑次数:0 次

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