Use Firefox's localStorage inspector to edit cookies?

浪子不回头ぞ 提交于 2021-02-07 03:34:29

问题


I'm performing a security analysis of my website and want to see how modified session data will effect my code. I can use Firefox's native Storage tab (on the developer tools menu) to view the cookie I want to change, but I can't edit it. Does Firefox allow this out of the box or do I need a plugin?


回答1:


This is not possible with the stock storage inspector as of Firefox 38.

It is planned to implement that feature, though: https://bugzilla.mozilla.org/show_bug.cgi?id=1031192


You can use the developer toolbar:

  • Press Shift+F2
  • Type cookie list, press return
  • Type cookie remove PHPSESSID, press return


来源:https://stackoverflow.com/questions/29347538/use-firefoxs-localstorage-inspector-to-edit-cookies

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!