Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

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 ?