為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Since ver 41.0.1 upgrade I cannot recover previous session and do not have sessionstore.js in profile. Files in sesstionstore backup are only current session

  • 3 回覆
  • 1 有這個問題
  • 8 次檢視
  • 最近回覆由 ronin_7

more options

There is no sessionstore file in profile folder. The recovery files in sessionstore_backup folder are only written for current session so there is no data for previous session. There only two files -- recovery.bak and recovery.js. Both files are the same are being updated in the current session.

There is no sessionstore file in profile folder. The recovery files in sessionstore_backup folder are only written for current session so there is no data for previous session. There only two files -- recovery.bak and recovery.js. Both files are the same are being updated in the current session.

所有回覆 (3)

more options

Make sure that you do not run Firefox in permanent Private Browsing mode (Never remember history).

  • Tools > Options > Privacy > Firefox will: "Use custom settings for history"
  • Deselect: [ ] "Always use Private Browsing mode"

Use one of these to close Firefox if you are currently doing that by clicking the close X on the Firefox title bar.

  • "3-bar" menu button > Exit (Power button)
  • Windows: File > Exit
  • Mac: Firefox > Quit Firefox
  • Linux: File > Quit

Firefox uses the sessionstore.js file in the profile folder to store session data, but this file is only present when Firefox is closed. The sessionstore.js file is created from recovery.js when you close Firefox and is removed and copied to previous.js when you start Firefox to make is possible to restore the session at any time.

You can try to make a backup copy of the recovery.js just before you want to close Firefox and place this file as sessionstore.js in the main profile folder to see if that at least makes Firefox restore the previous session.

more options

When Firefox crashes it does not create a sessionstore.js file since obviously it probably can't due the crash. Likewise ~\sessionstore_backup\previous.js is not created when Firefox crashes. So if you rarely close Firefox with Power Button, these files don't exist in the event of a crash. Nothing to do but manually copy session files periodically, but that gets old and easy to forget. Thanks.

由 ronin_7 於 修改

more options

So the scenario is recovery after a Firefox crash, not recovery after orderly shutdown of Firefox. To recover from a crash, the recovery.js or sessionstore.js should be written to and saved periodically during a session by Firefox.