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

搜尋 Mozilla 技術支援網站

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

了解更多

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.