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

搜索 | 用户支持

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

详细了解

Missing Session Restore Files

  • 11 个回答
  • 1 人有此问题
  • 41 次查看
  • 最后回复者为 cor-el

more options

I have "Restore previous session" checked but when I restart my computer Firefox does not start with the previous session. Currently I have many tabs open and need to restart Windows but I looked in my profiles folder and do not see any of the session files and backup folders.

Why are the session files (sessionstore.jsonlz4, recovery.jsonlz4, recovery.baklz4, previous.jsonlz4, sessionstore-backups) missing from the profile folder?

I can't restart Windows because I don't want to lose my tabs. How do I get Firefox to save the session to disk?

I have "Restore previous session" checked but when I restart my computer Firefox does not start with the previous session. Currently I have many tabs open and need to restart Windows but I looked in my profiles folder and do not see any of the session files and backup folders. Why are the session files (sessionstore.jsonlz4, recovery.jsonlz4, recovery.baklz4, previous.jsonlz4, sessionstore-backups) missing from the profile folder? I can't restart Windows because I don't want to lose my tabs. How do I get Firefox to save the session to disk?

所有回复 (11)

more options

It's hard to know what is going on with your Firefox. If you can't find the sessionstore-backups folder, you may be looking in the wrong place. Are you opening your profile folder from the Troubleshooting Information page? Either:

  • "3-bar" menu button > "?" Help > Troubleshooting Information
  • (menu bar) Help > Troubleshooting Information
  • type or paste about:support in the address bar and press Enter

In the first table on the page, find the Profile Folder row and click the "Open Folder" button to launch your profile folder in File Explorer.

Here you definitely should find a sessionstore-backups folder. It should contain a very recently updated recovery.jsonlz4 file. Any luck tracking that down? You can back it up on your desktop "just in case."

more options

It's late here, so I'll mention as an emergency measure, you can bookmark all the tabs in each window. Press Ctrl+Shift+D and give a name to the folder to bookmark all the current pages. This doesn't save the Back button history, but it's better than nothing.

more options

Thanks for helping me troubleshoot this problem.

I confirmed that I am looking in the correct profile folder. When I do a recursive search for "session" I get sessionCheckpoints.json and session-state.json.

A recursive search for "recov" or "prev" returns nothing.

I have fiddled with config values in the past but currently when I open about:config and filter by "session" all values are the defaults.

Are there config values that would cause this problem?

more options

You can use code in the Browser Console to get current session data (including PB mode tabs) and save this data to a text file.


ssj = SessionStore.getBrowserState(); // get Current Session State
ssj = prompt("Copy Current Session State\n\nPaste New Session State: press ESC or click Cancel to abort", ssj||"");
if(ssj){SessionStore.setBrowserState(ssj)}

more options

Uncaught ReferenceError: SessionStore is not defined

   <anonymous> debugger eval code:1
more options

You might be using the Web Console, which is the one that opens in the lower part of the current tab. The Browser Console is a separate window which -- once you enable the command line -- allows access to browser internals like your session. More details in the article cor-el linked.

more options

The sessionrestore-backups folder is deleted when Clear All History is run. Is this a bug?

more options

pkxpzwceeortawjjth said

The sessionrestore-backups folder is deleted when Clear All History is run. Is this a bug?

I think if you want to clear Browsing History for the time range Everything, it is appropriate for Firefox wipe the session history files. However, the bug is that if you set the dialog to clear as little as 1 Hour, Firefox also clears all of the files. This is a known problem but not a high priority to fix.

As long as you are still in session, Firefox should start saving new session history files shortly thereafter.

more options

The session files should be deleted, but the problem is that the sessionstore-backups folder is deleted and not re-created. I see recurring failures to write to the folder in the browser console. The failures continue until I manually create the folder.

more options

Hmm, I don't know why that is happening. When I test in an alternate profile, the folder isn't deleted. I guess file a bug report? https://bugzilla.mozilla.org/

more options

You aren't using any external cleanup or other software that might be removing this folder ?