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

搜索 | 用户支持

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

详细了解

How do I restore Windows and tabs after computer restart.

  • 4 个回答
  • 5 人有此问题
  • 2 次查看
  • 最后回复者为 konocwa

more options

I have Firefox set to restore windows and tabs from last session. This works when I close and reopen Firefox. It never works if I restart my computer. How can I get Firefox to remember my session when I restart my computer?

I have Firefox set to restore windows and tabs from last session. This works when I close and reopen Firefox. It never works if I restart my computer. How can I get Firefox to remember my session when I restart my computer?

所有回复 (4)

more options

Close Firefox first, then wait about 10 seconds for all the open files to be closed before restarting your computer.

If Firefox is running when you restart Windows chances are you are going to lose some session data due to the open files not getting closed properly.

more options

It worked the first time I tried it. The second time it did not. Perhaps Firefox should be set to save tabs continuously, instead of at closing.

more options

Firefox does save the tabs when you make changes, but Firefox saves this to the sessionstore-backups folder.


Firefox uses the sessionstore.js file in the profile folder to store session data. The sessionstore.js 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 will normally find these files in the sessionstore-backups folder:

  • previous.js (cleanBackup: copy of sessionstore.js from previous session that was loaded successfully)
  • recovery.js (latest version of sessionstore.js written during runtime)
  • recovery.bak (previous version of sessionstore.js written during runtime)
  • upgrade.js-<build_id> (backup created during an upgrade of Firefox)

You can copy a file from the sessionstore-backups folder to the main profile and rename the file to sessionstore.js to replace the current file (make a backup copy of the current sessionstore.js).

See also:

more options

This has been an ongoing issue. I appreciate all the work around solutions, but I just want my tabs to show up when I open Firefox, not play with a bunch of file manipulations to get them to reappear. It seems Mozilla could fix this problem. And I hope they do.