Search Support

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.

Learn More

Motherload Multiple session / 1000+ tabs LOST. Need help restoring please. Using (CCleaner)

  • 30 பதிலளிப்புகள்
  • 1 இந்த பிரச்சனை உள்ளது
  • 3 views
  • Last reply by cor-el

Initially this may seem the simplest problem but Im not sure it is. Perhaps due to order of closing session windows. I have this problem once every few years, So far I havent managed to set up anythng that works reliably to get me out of the mess. I use FF and have over 1000 tabs. 99% of the time 'restore session from before' after reboot works automatically great. Obviously with that many tabs things slow down, I then use CCLEANER to clear up and reboot.Today I forgot I had mutliple unimportant firefox windows open in addition to my MOTHERLOAD firefox window. I closed my session in perhaps some haphazzard order. On restarting I only had my unimportant windows open. I have not restarted after this Im still sitting in the new session. I have yet to find a consistent way to backup my open tabs. In the past I had an addon which wrote my tabs to a file but that addon got dumped after an update to FF. I REALLY REALLY dont want to lose my list of tabs as I wont be able to get this info back But more that this what is the safest way to back this info up on a regular basis in a way that I can get back to it? The current way is not 100% foolproof. :(

I have no history showing in FF as CCleaner removes all that (session data isnt removed). I assume I might have restore or previous restore files? Really not sure where to look. Im on Windows 10. Im not even sure where to look anymore for the sessonrestore file. Perhaps it doesnt save it when it isnt the last window to be closed??? Im reluctant to close this session now too. (Hope all my terminology is correct. Is it a window has mutiple tabs, you can have more than one window all of which comprise the session.)

Any help appreciated. Feeling sick and nervous

Initially this may seem the simplest problem but Im not sure it is. Perhaps due to order of closing session windows. I have this problem once every few years, So far I havent managed to set up anythng that works reliably to get me out of the mess. I use FF and have over 1000 tabs. 99% of the time 'restore session from before' after reboot works automatically great. Obviously with that many tabs things slow down, I then use CCLEANER to clear up and reboot.Today I forgot I had mutliple unimportant firefox windows open in addition to my MOTHERLOAD firefox window. I closed my session in perhaps some haphazzard order. On restarting I only had my unimportant windows open. I have not restarted after this Im still sitting in the new session. I have yet to find a consistent way to backup my open tabs. In the past I had an addon which wrote my tabs to a file but that addon got dumped after an update to FF. I REALLY REALLY dont want to lose my list of tabs as I wont be able to get this info back But more that this what is the safest way to back this info up on a regular basis in a way that I can get back to it? The current way is not 100% foolproof. :( I have no history showing in FF as CCleaner removes all that (session data isnt removed). I assume I might have restore or previous restore files? Really not sure where to look. Im on Windows 10. Im not even sure where to look anymore for the sessonrestore file. Perhaps it doesnt save it when it isnt the last window to be closed??? Im reluctant to close this session now too. (Hope all my terminology is correct. Is it a window has mutiple tabs, you can have more than one window all of which comprise the session.) Any help appreciated. Feeling sick and nervous

GirlInTrouble மூலமாக திருத்தப்பட்டது

All Replies (10)

Quote: It is one of the folders I tidy up.

Is this about the main level of this folder and what files (and possibly folders) in this folder do you cleanup ?

GirlInTrouble said

Its a shame this folder has lots of other files in. Am I missing something?

Which folder has a lot of files in it? The main level of your profile folder definitely has a lot of files, but most are not related to this issue and we wouldn't recommend deleting them.

If you have your profile folder open, and exit out of Firefox and let it shut down normally, and then:

  • Rename the sessionstore.jsonlz4 file => sessstoreOLD.jsonlz4
  • Rename the sessionstore-backups folder => sessionstore-backupsOLD

Then Firefox should start with just a new window since it cannot find any previous session information. Does that work?

In reply to the questions I dont delete anything I dont understand only one or two files. Currently anything that is being created as restore files are utterly unimportant as it is 1-5 tabs this temporary browsing situaition so I am not backing them up. Jsut deleting. Not deleting the sessionstore-backups directory as there are a few other files in there, perhaps time to rename that. Will have one more go now and report back.

This is where I am doing it:

C:\Users\myname\AppData\Roaming\Mozilla\Firefox\Profiles\n50x40wd.default-1465857576480-1512912837938

OK I renamed the sessionstore_backups to OLD >> Made no difference. What is going on!? Im still not getting my session back.

GirlInTrouble மூலமாக திருத்தப்பட்டது

If you use the code I posted on page one in the command line of the Browser Console and paste the content of an uncompressed sessionstore.js file in the prompt that this code will open then Firefox should restore the session if the file content is valid JSON.

ssj = prompt("Set New Session State", "");
if(ssj){SessionStore.setBrowserState(ssj)} // set New Session State or click Cancel

cor-el said

You can only make Firefox possibly use a uncompressed sessionstore.js file if you rename/remove the current sessionstore.jsonlz4 and also rename the sessionstore-backups folder folder, so Firefox can't fallback to either file or folder. You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

You can alternatively use code in the command line in the Browser Console to get sessionstore data for the current session in JSON format and possibly restore saved sessionstore data. You need to enable the command line in the Console via the toolbox setting page (press F1 in the Web Console or Inspector)


/* Session data - Get/Set State */
ssj = SessionStore.getBrowserState(); // get Current Session State
ssj = prompt("Get current Session State\nSet New Session State:", ssj||"");
if(ssj){SessionStore.setBrowserState(ssj)} // set New Session State or click Cancel

Co-rel Hi Whilst Im sure the last part of the answer lies in what you have written above I am somewhat unsure of the exact steps required. I would have attempted it earlier but couldnt even remember how to get into the console eventually finding control shift J. After that i tried pressing F1 which didnt appear to do anything then I tried pasting in the code but perhaps I wasnt meant to paste all of it? As it seemed to give syntax errors. I had already tried to open the json file to select the contents ((?) or am I meant to just drag the file?) to paste it but the default open didnt understand how to open it. Overall perhaps there may be some impression that I am more advanced in my knowledge of the exact steps required. If you could possibly break it down a little please? Many thanks

TypeError: e is undefined Grammarly-bg.js:1:1062837 TypeError: e is undefined Grammarly-bg.js:1:1062837 Unchecked lastError value: Error: Invalid window ID: 48 h0-main.js:1 TypeError: e is undefined Grammarly-bg.js:1:1062837 Failed to analyze input string unterminated string literal 40 js-property-provider.js:110:13 Unchecked lastError value: Error: Invalid window ID: 50 h0-main.js:1 TypeError: e is undefined Grammarly-bg.js:1:1062837 Failed to analyze input string unterminated string literal js-property-provider.js:110:13 /* Session data - Get/Set State */ ssj = SessionStore.getBrowserState(); // get Current Session State ssj = prompt("Get current Session State\nSet New Session State:", ssj||""); if(ssj){SessionStore.setBrowserState(ssj)} // set New Session State or click Cancel null Unchecked lastError value: Error: Invalid window ID: 50 h0-main.js:1 TypeError: e is undefined

Hi GirlInTrouble, one way to copy the JSON would be to drop the file on a Firefox tab, and after the viewer fancies it up, click the "Raw" button to view the unformatted code, which is what you'll need to paste at the prompt.

GirlInTrouble Question owner said

In reply to the questions I dont delete anything I dont understand only one or two files. Currently anything that is being created as restore files are utterly unimportant as it is 1-5 tabs this temporary browsing situaition so I am not backing them up. Jsut deleting. Not deleting the sessionstore-backups directory as there are a few other files in there, perhaps time to rename that. Will have one more go now and report back. This is where I am doing it: C:\Users\myname\AppData\Roaming\Mozilla\Firefox\Profiles\n50x40wd.default-1465857576480-1512912837938 OK I renamed the sessionstore_backups to OLD >> Made no difference. What is going on!? Im still not getting my session back.

I had the same problem. Firefox would not restore the backup file I placed in the sessionstore_backups file. This is how I made Firefox look into the sessionstore_backups file for the backup file.

Close Firefox.

Follow the above advice on how to put a backup file in the sessionstore_backups file.

Put the backup file you want to restore in the Firefox sessionstore_backups file.

Do not rename the Firefox sessionstore_backups file.

You will need to rename C:\Users\YourUserName\AppData\Roaming\Mozilla\Firefox\Profiles\user****.default\sessionstore.jsonlz4 file.

Rename the file to \sessionstoreold.jsonlz4.

Restart firefox.

Upon restart this will make firefox look into the sessionstore_backups file for the backup file that you want to restore.

When Firefox restarts. Go to the Firefox Menu Bar, History, and click Restore Previous Session. This restored all the tabs that were in the backup file I placed in the sessionstore_backups file.

Hope this helps.

Firefox only needs a valid compressed sessionstore.jsonlz4 in the main profile folder to restore the session that is in the file. If you have an uncompressed sessionstore.js file then you may have to rename the sessionstore-backups folder to prevent Firefox from using a sessionstore file in this folder.

Pressing F1 to open the Developer Tools Settings needs to be done in one of the developer tools like Inspector or Web Console and not in the Browser Console.

  1. 1
  2. 2