How to restore a browsing session from backup

Check about:sessionrestore

If a session is lost, hopefully the restore pages open automatically, but if not go to about:sessionrestore in the location bar. Your page should look similar to this:

Fx97RestoreSessionsession1

If this page is empty or the Restore Session is disabled, continue reading.

Restoring from a backup file

  1. Open the Troubleshooting Information page by entering about:support in the Firefox address bar.
  2. In the Application Basics section, click the Show in FinderOpen FolderOpen Directory button in the Profile FolderProfile Directory line (shown below on macOS).
    Fx97aboutsupportOpenProfileFoldersession2
  3. A file system view of your profile folder will show up.
  4. In the profile folder (for example, xxxxxxxx.default-release), if you scroll down a bit, you should see the sessionstore-backups folder.
  5. Make a copy of the sessionstore-backups folder.
  6. Shut down Firefox. Generally, you want to avoid file system operations (move, copy, delete) in this folder while Firefox is running. The copy of the unaccessed backups folder was necessary and should be safe.
  7. Move the file called sessionstore.jsonlz4 to another location (like your desktop). Moving rather than deleting is a precautionary step.
    Note: This file does not exist while Firefox is running.
  8. Navigate to the sessionstore-backups backup folder you made.
  9. Review the files in this folder by date modified (you can ignore their names, any file in this folder should be restorable). If the most recently modified file is particularly small compared to others, it may be mostly blank, and you'll want to use the bigger one.
  10. Copy your chosen file into the main profile folder. (Not the original sessionstore-backups folder, but the one above it.)
  11. Rename the file to sessionstore.jsonlz4.
  12. Start up Firefox.
Warning: You may need to ensure that your file system viewer is not hiding the file extensions of known types (like .js or .jsonlz4) in order to properly rename the backup files.

Conclusion

If you feel that you are more prone to losing your session – sessions with lots of tabs may fall into this category – or would just like insurance, the recommended extension Tabs Session Manager helps keep sessions safe.


Based on information from How to Restore a Browsing Session from Backup (reddit.com/r/firefox)

Was this article helpful?

Please wait...

These fine people helped write this article:

Illustration of hands

Volunteer

Grow and share your expertise with others. Answer questions and improve our knowledge base.

Learn More