This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

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

Could not able restore session using sessionstore.js, keeping overwriting

  • 14 பதிலளிப்புகள்
  • 15 இந்த பிரச்னைகள் உள்ளது
  • 9 views
  • Last reply by jonyt

My computer crashed and opened fireforx multiple times , hence i lost the previous session tabs However, i recovered the previous sessionstore.js file using recuva , now, after i replace the sessionstore.js, firefox it keeps overwriting this file and does not open the previous tabs from this file.

I checked all possible option, however i dont have solution yet. Can somebody help me to fix this. I have lots of important session tabs in previous sessionstore.js file So, Please hlep me to retore the session.

My computer crashed and opened fireforx multiple times , hence i lost the previous session tabs However, i recovered the previous sessionstore.js file using recuva , now, after i replace the sessionstore.js, firefox it keeps overwriting this file and does not open the previous tabs from this file. I checked all possible option, however i dont have solution yet. Can somebody help me to fix this. I have lots of important session tabs in previous sessionstore.js file So, Please hlep me to retore the session.

All Replies (14)

Hello coolchap007, if the sessionstore.js file is corrupted probably you can not restore your session.

A possible solution is to make a copy of the file (sessionstore.js) to your desktop and then try to create a new profile and move the copy in the new profile to see if that works.

But if you already, as you said, firefox overwriting this file in your current profile, you can't do that because your current sessionstore.js can't restore your missed session.

Seek in your history if you haven't deleted, to find your tabs.


thank you

You can also try to restore a previous version of the sessionstore.js file.

Did you try to change the startup setting?

  • Tools > Options > General > Startup: When Firefox Starts: "Show my windows and tabs from last time"

You can also check History > Recently Closed Tabs/Windows

I did try all above options, but it is still overwriting the sessionstore.js file. Are all my sessionstore.js corrupted. I recovered all sessionstore.js file for past 6 months. but none of them opening either.

Is that possible to edit them and get the all tab urls? I opened in notepad++, it is huge file(5MB) and content is not clear.

Please help me ...

Thanks for your suggestion, however, they didnt help me I tried following options, but no luck yet :(

Instructions:

1. open about:config 2. set devtools.chrome.enabled to true 3. tools > web developer > scratchpad 4. environment > browser 5. edit > paste (i.e. copy and paste code below) 6. execute > run

or

1. tools > web developer > error console 2. paste code in text field 3. evaluate code


Unfortunately, windows properties did not show any previous version of the files as it was deleted when i opened firefox unknowingly...so i recovered the sessionstore.js files using recuva

I had the exact same problem (lost the sessionrestore file, recovered it via recuva, but file was unusable) and I managed to solve it! The problem is that when recuva is restoring the file, extra garbage is added at the end of the file, my guess is that because some directory information is lost, the recovered file is restored, but the last cluster is restored entirely, even if only parts of it were used.

After opening the file in Notepad++, I used <CTRL>+B to find the matching brace of the opening '[', deleted all the remaining junk afterwards, saved the file, and reopened firefox.

Now the session restore works!

Can you say more about how you can tell what to delete in the sessionstore.js file you recovered with Recuva?

I did that and like you FF didn't restore my last tabs.

I have so many end brackets, if I understand what you said you did correctly, did I? I'm not sure after which of them you deleted to make this work. Thanks for your suggestion, if you can say more about where you deleted and what all, that'd be great to hear!

There is no guarantee that Recuva recovers the original file because clusters may have been used in the meantime causing the data to get overwritten.
It is not possible to repair a damaged sessionstore.js file, so usually the only option left is to retrieve the URLs from the file via other means (there are some bookmarklets present in the mozillaZine forum thread to achieve this).

In my case Firefox actually DELETES the sessionstore.js file every time Firefox closes, with the "Show my windows and tabs from last time" set, and the previous session tabs don't get restored.

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

In case you are using "Clear history when Firefox closes":

  • do not clear the Browsing History

Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.

This fixed my problem (unchecking clear browser history on close).

You can use the utility at http://firefox-session-restore.herokuapp.co... to restore your tabs. Just paste in the contents of sessionstore.bak.

Hi jonyt, consider promoting an HTTPS URL for your application. Session data files often include persistent cookies, form data, and other personal information it would be preferable not to send over an open connection.

jscher2000, you're right of course. The application is also available at https://firefox-session-restore.herokuapp.co....