简体   繁体   English

如何使用firefox开发人员工具清除或删除浏览器会话

[英]How to clear or delete a browser session with firefox developer tools

I used to be able to remove a browser session in Firefox developer tools. 我曾经能够在Firefox开发人员工具中删除浏览器会话。 Now, it seems I can't? 现在,似乎我不能? I've enabled viewing the storage tab and I can see the session but it no longer gives me the option to remove it. 我已启用查看存储选项卡,我可以看到会话,但它不再让我选择删除它。

My reason for wanting to remove a session is for web development. 我想要删除会话的原因是用于Web开发。 My site stores nav changes in a PHP session and I would like to not have to completely kill the browser and re-open. 我的网站在PHP会话中存储导航更改,我不想完全杀死浏览器并重新打开。

Any ideas? 有任何想法吗? Using FF 39.0 使用FF 39.0 php会话

  1. From the firefox button or the tools menu go to the Options > Privacy panel. 从firefox按钮或工具菜单转到选项>隐私面板。
  2. Select "Firefox Will: Use Custom Settings for History" 选择“Firefox Will:使用历史记录的自定义设置”
  3. Click on the "Show Cookies" Button 单击“显示Cookie”按钮
  4. Use the search box to enter the domain name of your site under development or drill down the folder lists to locate the website whose cookies you want to delete. 使用搜索框输入正在开发中的站点的域名,或深入查看文件夹列表以找到要删除其cookie的网站。
  5. Select the cookie or cookies in the located list that you want to delete and click on "Remove Cookie". 在找到的列表中选择要删除的cookie或cookie,然后单击“删除Cookie”。

Once this has been done you will just have to refresh your page and allow your PHP to check for a valid session, and when it does not find one it will create a new session and save a new PHPSESSID cookie to your browser as a brand new session that you can do what you like with. 完成此操作后,您只需刷新页面并允许PHP检查有效会话,当它找不到会话时,它将创建一个新会话并将新的PHPSESSID cookie作为全新的保存到您的浏览器中会话,你可以做你喜欢的事情。

There is a better way described here: 这里有一个更好的方法:

https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector https://developer.mozilla.org/en-US/docs/Tools/Storage_Inspector

  • Enable Storage tab in developer tools using the settings icon in top right corner of developer tools. 使用开发人员工具右上角的设置图标在开发人员工具中启用“存储”选项卡。
  • Go to cookies and right click on it, then Delete All 转到cookie并右键单击它,然后全部删除

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM