搜索 | 用户支持

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

详细了解

Does firefox keep more than 0 record of historic sessions?

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

more options

Long story short: windows update sneaked a restart under my nose caused me to lose all my previous session.

I'm attempting to recover the previous session.

I have backed up the unmodified session profile folder. But this profile folder was modified by the restart process obviously, as windows gave firefox "normal shutdown" command. How do I know that? The next time I opened it up, it's "brand new" without the "restore session" interface.

So my idea is to figure out if firefox keeps a track record of previous sessions EVEN IF THE SHUTDOWN WAS PROPER.

If it does, well I'll have to figure out a way to "trick" firefox to restore it. If it doesn't, well I'll have to manually restore it by sifting through the history.

I repeat, the key here is for me to find out whether or not firefox always keep a record of previous session somewhere.

So my question is, does it? Or does it purge all the previous session clean as long as the shutdown was deemed "correct"?

Long story short: windows update sneaked a restart under my nose caused me to lose all my previous session. I'm attempting to recover the previous session. I have backed up the unmodified session profile folder. But this profile folder was modified by the restart process obviously, as windows gave firefox "normal shutdown" command. How do I know that? The next time I opened it up, it's "brand new" without the "restore session" interface. So my idea is to figure out if firefox keeps a track record of previous sessions EVEN IF THE SHUTDOWN WAS PROPER. If it does, well I'll have to figure out a way to "trick" firefox to restore it. If it doesn't, well I'll have to manually restore it by sifting through the history. I repeat, the key here is for me to find out whether or not firefox always keep a record of previous session somewhere. So my question is, does it? Or does it purge all the previous session clean as long as the shutdown was deemed "correct"?

所有回复 (3)

more options

In case of a shutdown due to an update then Firefox would create an upgrade file in the sessionstore-backups folder.

Backup the session files in the sessionstore-backups folder in the Firefox profile folder to make sure not to lose possible important session data. Do NOT close Firefox when Firefox is already running.

You can use the button on the "Help -> More Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page (Root directory).

You will normally find these files in the sessionstore-backups folder:

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

You can try to restore a recent upgrade.jsonlz4-<build_id> when available or use a utility to browse Windows System Restore points to see if you can find a recent sessionstore.jsonlz4 file. You can look at this tool to inspect a compressed jsonlz4 sessionstore file.

You can copy a file from the sessionstore-backups folder to the main profile and rename the file to sessionstore.jsonlz4 to replace the current file with Firefox closed.

  • make sure to backup the current sessionstore.jsonlz4
more options

cor-el said

In case of a shutdown due to an update then Firefox would create an upgrade file in the sessionstore-backups folder. Backup the session files in the sessionstore-backups folder in the Firefox profile folder to make sure not to lose possible important session data. Do NOT close Firefox when Firefox is already running. You can use the button on the "Help -> More Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page (Root directory). You will normally find these files in the sessionstore-backups folder:
  • previous.jsonlz4 (cleanBackup: copy of sessionstore.jsonlz4 from previous session that was loaded successfully)
  • recovery.jsonlz4 (latest version of sessionstore.jsonlz4 written during runtime)
  • recovery.baklz4 (previous version of sessionstore.jsonlz4 written during runtime)
  • upgrade.jsonlz4-<build_id> (backup created during an upgrade of Firefox)
You can try to restore a recent upgrade.jsonlz4-<build_id> when available or use a utility to browse Windows System Restore points to see if you can find a recent sessionstore.jsonlz4 file. You can look at this tool to inspect a compressed jsonlz4 sessionstore file. You can copy a file from the sessionstore-backups folder to the main profile and rename the file to sessionstore.jsonlz4 to replace the current file with Firefox closed.
  • make sure to backup the current sessionstore.jsonlz4


Thanks. Looks like by overwriting the "recover" file I did the trick. One more thing, is there a reliable session manager? I used to use this session manager addon but it is no longer available nowadays. And the most popular session extension doesn't really work reliably.

more options

If Firefox works properly and there are no issues like crashes of hangs when you close Firefox then extensions should work. If you regularly encounter issues with restoring the session then you can expect problems with extensions as this can't prevent the extension from updating its data whereas built-in Firefox Session Restore might still work (you may only lose the latest tab changes).