搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Restoring session from sessionstore.bak file

  • 2 回覆
  • 24 有這個問題
  • 1 次檢視
  • 最近回覆由 mark2

more options

I'm trying to recover a session lost after a system crash,I have a sessionstore.bak file from the time of this crash (about 1.8Mb),and a sessionstore-1.js file which I assume is a leftover from some time ago and not relevant for this issue:copying this .bak file in the profile folder and renaming it to .js has not restored my session, indeed only one of the 10 windows I had open at that time is now restored-Firefox is set to show windows and tabs from the last time,so why this is not working?

After that crash,not only my profile was missing but the cache folders as well,it all got moved in a C:something directory,maybe I should recover the cache folder also to restore the session?

Is there any other reason why a sessionstore.bak file could not be used to successfully reopen the last session?

I'm trying to recover a session lost after a system crash,I have a '''sessionstore.bak''' file from the time of this crash (about 1.8Mb),and a '''sessionstore-1.js''' file which I assume is a leftover from some time ago and not relevant for this issue:copying this '''.bak''' file in the profile folder and renaming it to '''.js''' has not restored my session, indeed only one of the 10 windows I had open at that time is now restored-Firefox is set to show windows and tabs from the last time,so why this is not working? After that crash,not only my profile was missing but the cache folders as well,it all got moved in a C:something directory,maybe I should recover the cache folder also to restore the session? Is there any other reason why a sessionstore.bak file could not be used to successfully reopen the last session?

由 mark2 於 修改

所有回覆 (2)

more options

Is there anything in the History > Recently Closed Windows menu ?

You should remove numbered sessionstore-##.js files (sessionstore-1.js). Those shouldn't be there and usually indicate that other software is accessing the main sessionstore.js file that Firefox rewrites every 10 seconds.

more options

Thanks for your answer cor-el,I've just successfully restored this 100-ish tabs session from that sessionstore.bak file,what I've done is

  *  copy sessionstore.bak  in the profile folder,rename it to .js
  • replace the cache folders moved in the "recovered files" directory back in their original location
  • replace a couple of missing userchrome.css files with some others from a previous backup
  • delete that sessionstore-1.js as you suggested

Honestly now I have no clue about the deciding factor,but the pre-crash session is back exactly as it was,I wonder if the cache files are also essential to reopen such a large session (I also have BarTab installed,maybe this extension needs the cache files to work properly?)

Now about that sessionstore-##.js files you were pointing at,I assume the external programs accessing Firefox would be some security software,or do I have to search now for some out of control application ?

由 mark2 於 修改