搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

sessionstore files and folder being deleted

  • 4 回覆
  • 1 有這個問題
  • 6 次檢視
  • 最近回覆由 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.

被選擇的解決方法

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.

從原來的回覆中察看解決方案 👍 0

所有回覆 (4)

more options

選擇的解決方法

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.

由 cor-el 於 修改

有幫助嗎?

問個問題

如果您還沒有帳號,您必須先 登入您的帳號 來回覆文章。請 開始一個新問題