为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 14 个回答
  • 15 人有此问题
  • 9 次查看
  • 最后回复者为 jonyt

more options

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.

所有回复 (14)

more options

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

more options

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

more options

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 ...

more options
more options

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

more options

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!

more options

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!

more options

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).

more options

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于修改

more options

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.

more options

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

more options

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

more options

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.

more options

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