We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

সহায়তা খুঁজুন

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

আরও জানুন

import session

  • 2 উত্তরসমূহ
  • 2 এই সমস্যাটি আছে
  • 3 দেখুন
  • শেষ জবাব দ্বারা DynV

more options

I'll give some context after getting to the point. I have a saved %AppData%\Mozilla\Firefox\Profiles\SOME_LETTERS_AND_NUMBERS.default\sessionstore-backups\previous.js (includes Windows environment variable) which I'd like its content to replace the current session; I want all the tabs and windows in it to be in Firefox once again.

In a session that included some videos (which tend to play when loading, taking both CPU and attention from me to pause/close them) and numerous tabs, FF crashed. I was in a middle of something and wanted to get quickly back to it so I didn't restore my previous session right away. The time-sensitive event ended and I wanted to recover the session but menu > History > Restore Previous Session was disabled. I hurried to get some information and found out where the session were located and copied the directory content as soon as I could. The 3 other files in the folder were not related to the session I wanted (file in 1st paragraph). I tried to restore the session but when I loaded it didn't show what normally is shown after a clean FF exit, about:sessionrestore with the windows & tabs tree, but instead had my home page and Restore Previous Session enabled, however when I clicked the latter nothing was restored and the files in the session dir (in 1st paragraph) were replaced so I closed FF, deleted the files, replaced them with the good ones and repeated the process and got the same result (I did that a few times with variations on what files I replaced).

Thank you kindly for your help

I'll give some context after getting to the point. I have a saved %AppData%\Mozilla\Firefox\Profiles\SOME_LETTERS_AND_NUMBERS.default\sessionstore-backups\previous.js (includes Windows environment variable) which I'd like its content to replace the current session; I want all the tabs and windows in it to be in Firefox once again. In a session that included some videos (which tend to play when loading, taking both CPU and attention from me to pause/close them) and numerous tabs, FF crashed. I was in a middle of something and wanted to get quickly back to it so I didn't restore my previous session right away. The time-sensitive event ended and I wanted to recover the session but menu > History > Restore Previous Session was disabled. I hurried to get some information and found out where the session were located and copied the directory content as soon as I could. The 3 other files in the folder were not related to the session I wanted (file in 1st paragraph). I tried to restore the session but when I loaded it didn't show what normally is shown after a clean FF exit, about:sessionrestore with the windows & tabs tree, but instead had my home page and Restore Previous Session enabled, however when I clicked the latter nothing was restored and the files in the session dir (in 1st paragraph) were replaced so I closed FF, deleted the files, replaced them with the good ones and repeated the process and got the same result (I did that a few times with variations on what files I replaced). Thank you kindly for your help

All Replies (2)

more options

hi DynV, please proceed like this which should bring back the old session:

  • close all running instances of firefox.
  • rename your backed-up previous.js to sessionstore.js
  • put the renamed sessionstore.js file directly into your profile folder at %AppData%\Mozilla\Firefox\Profiles\SOME_LETTERS_AND_NUMBERS.default overwriting the existing file there
  • launch firefox

you can find out more information about how the session restore mechanism in firefox works in this blog post by a mozilla engineer: https://dutherenverseauborddelatable.wordpress.com/2014/06/26/firefox-the-browser-that-has-your-backup/

more options

After doing what philipp suggested, the following is what's happening for me. about:sessionrestore doesn't include anything where a tree would be. Using Restore Previous Session will only restore some of the windows that session contain, in particular the windows I'm most interested in.