Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My Windows XP system crashed. Usually about:sessionrestore shows me my previous session. But this time, after I rebooted, the page appeared blank.

I was able to find my sessionsstore files in my profile folder. They have names like sessionstore-1.js through sessionstore-8.js. There is also a sessionstore.bak, which was probably created when the system crashed. I don't trust the sessionstore.bak: it's really small in size.

Can I use sessionstore-8.js instead to get back my old sessions?

Also, how exactly do I go about this? Should I quit Firefox before making any changes under the profile directory?

share|improve this question
    
Check out this blog post for restoring information from sessionstore.bak otherwise just open the sessionstore-#.js in a text editor or check this out. +1 though, interesting question –  Raystafarian Feb 28 '12 at 11:42
1  
The above mentioned methods for extracting URLs from sessionstore-#.js extract ALL URLs including each tab's browsing history. (not what anyone wants, I think) –  Mark Jeronimus Mar 26 '12 at 8:31

4 Answers 4

I know this is old - but just in case someone comes upon this. You can use the utility at http://firefox-session-restore.herokuapp.com/ to restore your tabs. Just paste in the contents of sessionstore.bak.

share|improve this answer
    
This page has failed with several of my files. A big lack of this page is that it does not say what it is supposed to do. –  Nicolas Barbulesco Oct 5 '13 at 8:03
    
Can you provide the data on which it failed? –  Johnny Oct 6 '13 at 13:36
    
I have over 100 urls in my sessionstore.bak. The website only appears to display about 15 of them. –  Rucent88 Apr 5 at 4:07
    
hi @Rucent88, is there any chance you could provide me with the file so I can see what's going wrong? –  Johnny May 28 at 21:07

see if this helps any: 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.

  • 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
share|improve this answer

EDIT removed links as the destination URL has moved (and there was too much to copy into this answer).

So, as a quick answer, try sessionstore.js in your Profile folder.

share|improve this answer

Open the most recent file (probably sessionstore.js) in an advanced text editor supporting RegEx Search & Replace (eg. Textpad, Notepad++).

Replace all "entries":\[{"url":"([^"]*)" With \n\1\n

and the url's of the last opened tabs will appear on every other line.

[Note on textpad: you need to enable POSIX syntax in Preferences/Editor.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.