This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Buscar en Ayuda

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

sessionstore files and folder being deleted

  • 4 respuestas
  • 1 tiene este problema
  • 1 visita
  • Última respuesta de cor-el

more options

When I close firefox either with the exit button under the 3-bar menu or the red x, ALL the files that have anything to do with session restore including the sessionstore-backup folder get deleted.

I have a backup of my session from a previous crash so when I lost my tabs yesterday I figured id just use that and get most of what I lost back. Then when I restarted my PC and re-opened firefox all my tabs were missing again so I used the backup again and after a few tests I realized the files and folder were being deleted on exiting the browser. The strange thing is I did a refresh using the tool under about:support and it created all the sessionstore files that were missing but then deleted them when I closed the browser.

When I close firefox either with the exit button under the 3-bar menu or the red x, ALL the files that have anything to do with session restore including the sessionstore-backup folder get deleted. I have a backup of my session from a previous crash so when I lost my tabs yesterday I figured id just use that and get most of what I lost back. Then when I restarted my PC and re-opened firefox all my tabs were missing again so I used the backup again and after a few tests I realized the files and folder were being deleted on exiting the browser. The strange thing is I did a refresh using the tool under about:support and it created all the sessionstore files that were missing but then deleted them when I closed the browser.

Solución elegida

Sessions are considered part of history. Could you check whether Firefox is set to delete history at shutdown? You can check that here:

  • Windows: "3-bar" menu button (or Tools menu) > Options
  • Mac: "3-bar" menu button (or Firefox menu) > Preferences
  • Linux: "3-bar" menu button (or Edit menu) > Preferences
  • Any system: type or paste about:preferences into the address bar and press Enter/Return to load it

In the left column, click Privacy & Security

On the right side, scroll down to the History section. With the setting "Firefox will: Use custom settings for history" do you see a checkmark on this preference:

[X] Clear history when Firefox closes

If so, you either could turn that off, or click the Settings button to the right of it and make sure you are not clearing Browsing & Download History.


There also are third party programs that may "clean" browser data between session, including potential CCleaner and Advanced SystemCare. Both should have a way to turn off cleaning Firefox files.

Leer esta respuesta en su contexto 👍 0

Todas las respuestas (4)

more options

Solución elegida

Sessions are considered part of history. Could you check whether Firefox is set to delete history at shutdown? You can check that here:

  • Windows: "3-bar" menu button (or Tools menu) > Options
  • Mac: "3-bar" menu button (or Firefox menu) > Preferences
  • Linux: "3-bar" menu button (or Edit menu) > Preferences
  • Any system: type or paste about:preferences into the address bar and press Enter/Return to load it

In the left column, click Privacy & Security

On the right side, scroll down to the History section. With the setting "Firefox will: Use custom settings for history" do you see a checkmark on this preference:

[X] Clear history when Firefox closes

If so, you either could turn that off, or click the Settings button to the right of it and make sure you are not clearing Browsing & Download History.


There also are third party programs that may "clean" browser data between session, including potential CCleaner and Advanced SystemCare. Both should have a way to turn off cleaning Firefox files.

more options

Also, as a possible temporary workaround, I have a tool to extract the URLs from your old session history files:

https://www.jeffersonscher.com/ffu/scrounger.html

After loading your file into the page, click the Scrounge URLs button to read out the tab addresses. If that doesn't finish within 15 seconds, the tab probably crashed. You could close it and try again.

Assuming you get a useful list, use the Save List button to archive the URLs to a web page of clickable links.

more options

The custom settings for history was checked and I've had firefox set to delete browsing history and cache on exit as far back as I can remember. No idea why it started deleting the sessionstore files and backup folder on exit, but unchecking the custom settings seems to have fixed that problem. How it got checked to begin with is beyond me. As for the tool you mention it is a life saver. I just had to rename the file to .js because it was saved in an uncompressed form.

Sadly I had to go back to a session from april 2020 but at least it's not deleting the sessionstore files any more. Thank you for the help!

more options

If you use "Clear history when Firefox closes" to clear the browsing history then this prevents Session Restore from restoring tabs and pinned tabs. This has always been the case AFAIK.

Note that you only (always) see "Use custom settings for history" stay selected when you make changes to the history settings (i.e. some are not default) and you need to select this choice to be able to inspect the settings and make changes. Selecting "Remember history" or "Never remember history" (Private Browsing mode) merely resets all history settings to the default.

Modificadas por cor-el el