为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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.