Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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. My site stores nav changes in a PHP session and I would like to not have to completely kill the browser and re-open.

Any ideas? Using FF 39.0 php session

like image 393
drooh Avatar asked Aug 07 '15 21:08

drooh


People also ask

How do I delete all history from a website in Firefox?

When you hold down the ctrl key and click on the site, a menu will pop up. Just select "forget about this site" from that menu and Firefox will delete it from your history. Ctrl+click (or right click) to select a site.

Where does Firefox store previous session?

During runtime Firefox uses files is the sessionstore-backups folder. You will normally find these files in the sessionstore-backups folder: *previous.


2 Answers

  1. From the firefox button or the tools menu go to the Options > Privacy panel.
  2. Select "Firefox Will: Use Custom Settings for History"
  3. Click on the "Show Cookies" Button
  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.
  5. Select the cookie or cookies in the located list that you want to delete and click on "Remove 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.

like image 96
Chris Rutherfurd Avatar answered Oct 11 '22 07:10

Chris Rutherfurd


There is a better way described here:

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
like image 32
Jahan Zinedine Avatar answered Oct 11 '22 09:10

Jahan Zinedine