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

搜索 | 用户支持

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

详细了解

How to restore previous browsing session in Firefox 37.0.1?

more options

There are no files named sessionstore.js, sessionstore.old, or sessionstore.bak-datetime

There are no files named sessionstore.js, sessionstore.old, or sessionstore.bak-datetime

所有回复 (11)

more options

While Firefox is open, it maintains a file named recovery.js in the sessionstore-backups folder, which is a folder inside your profile folder. If you are planning to restore a previous session, start by backing up recovery.js and previous.js to a safe location that Firefox won't overwrite, such as your Documents folder.

When Firefox is closed (without crashing), it creates a sessionstore.js file in the main level of the profile folder. If you are planning to switch out that file for an earlier one, make sure to allow a few moments for Firefox to create that file after exiting. Then rename sessionstore.js to sessionstore.old, and copy in recovery.js or previous.js, depending on what you want to try, and rename that to sessionstore.js. Then when you start Firefox, if your session is not resumed automatically, use History > Restore previous session.

more options

I can find previous and restore files but without extension, so I assume they are .js. But I can't find sessionstore.js. The only other files are recovery.bak and three upgrade.js files.

more options

sessionstore.old and sessionstore.bak-datetime are likely leftover from a older Firefox version or update as they are no longer used in current Firefox releases.

Does Firefox create a sessionstore.js file when you close Firefox?

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"

In case you use "Clear history when Firefox closes".

  • do not clear the Browsing History

Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.

more options

Yes, I have the settings as you recommended them.

more options

由jscher2000 - Support Volunteer于修改

more options

Can you restart Firefox and get the open tabs back if you use the restart command in the command line of the Developer Toolbar (Firefox/Tools > Web Developer; Shift+F2)?

more options

This is a more complete response to your post:

caradawn said

I can find previous and restore files but without extension, so I assume they are .js.

Windows hides the .js extension by default. Instead, you would see the file name as recovery with a type of JScript. To turn off hiding of file extensions, see: http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions

caradawn said

But I can't find sessionstore.js. The only other files are recovery.bak and three upgrade.js files.

Is Firefox running? As mentioned in my earlier post, Firefox creates sessionstore.js when it closes. What I failed to mention is that it deletes the old sessionstore.js after it starts up again. So if Firefox running, it's normal not to find sessionstore.js.

more options

Still trying to figure this out, none of these have solved it yet. Thanks for clarifying that the sessionstore file will not be found if I have Firefox open. Can you explain from your first post, "and copy in recovery.js or previous.js"? I'm not sure what "copy in" means. Thanks.

more options

You can copy a previous.js or recovery.js file to sessionstore.js in the main profile folder to replace the existing sessionstore.js file and make Firefox use this file.

You can also check for previous versions of the sessionstore.js file.

  • Right-click: Properties > Previous Versions
more options

Can you explain how to get to these files if I have firefox closed? I understand from previous responses that sessionstore will not show up with firefox open, but I can't type about:config to find them unless I have firefox open. Thanks.

more options

If Firefox is open, or while Firefox is open, use about:support and click the Show Folder button. This launches Windows Explorer in a new window. Leave that window open when exiting out of Firefox.

If Firefox is closed, type or paste this in the start menu search box and press Enter:

%APPDATA%\Mozilla\Firefox\Profiles

At that point, you may see only one folder, or you may see several. You may need to use file modification dates to identify your currently live profile folder.