How to Recover Your Firefox Session When All Hope is Lost

Last week my house had some electrical issues, and our landlord came round to take a look at things. During this time, my computer got turned off without warning when a fuse was removed. It recovered fine, but next time I went to shut down in a hurry, Firefox was hanging around, and I wanted it dead. I chose to kill it and shut down—a mistake I would soon regret.

When the fuse and power were restored and my machine booted up again, I opened Firefox. It asked to do a session restore, as it had closed down with an error. That’s fine, no problem; I did force quit and the restore has always worked. Not this time. It DID load all my open tabs, probably about 100-130 or so… every single one of them… blank, with no URL. I don’t have all those tabs open at once, but in one session—most of which is stored in Firefox’s grouped tabs feature.

Many hours had gone into collecting those tabs. Several of them were tabs of projects put on pause, a few article resources, plans for future projects, random research and reading I wanted to finish at some time. All lost. I was under the false impression that Firefox by default stored several sessions, but sadly it does not. This can be achieved with a plugin which I’ll get to later.

I had a frantic panic and it took about half an hour to sink in that I’d probably never see those tabs again. Because I’d spent so many hours gathering them, however, I decided I’d try and get them back, somehow. I figured the data must be stored somewhere, and maybe Firefox just wasn’t loading the URLs because the file was corrupt.

After a bit of poking around and Googling, I found the profile data is stored in the appdata folder (%APPDATA%\Roaming\Mozilla\Firefox\Profiles\[RandomNumber]) on Windows (you may or may not have the “Roaming” folder). If you’re a Mac user, you should find the profile data at ~/Library/Mozilla/Firefox/Profiles/ or ~/Library/Application Support/Firefox/Profiles/. The files you’ll be looking for is sessionstore.js and sessionstore.bak. Firefox automatically creates a backup encase of crashes, but if like me, you opened and closed Firefox several times before realising this, you will have overwritten both these files several times.

At this point, I almost gave up. I figured the chances of recovering the session data file was pretty low. Having successfully used file-recovery software before, I decided to give it a shot. On Windows I use Recuva, made by the same people as CCleaner, and it’s free. If you’re on a Mac and you don’t have Time Machine or (for whatever reason) don’t have any form of backup enabled, you can have a look at some Mac-based alternatives.

Now I knew what file I was looking for, where it was, and how to recover it. Because of the way the NTFS file system works on Windows, when you delete a file (from the recycle bin), you actually just delete the index to the file, allowing that space to be reused. Recuva knows this, and searches for un-indexed files on the drive. It sometimes only recovers partial files, but I was lucky enough to find a completely untouched version of my sessions file.

After the file was recovered, I moved it to the correct location and re-opened Firefox. JOY! After the huge worry, I decided to installed Session Manager, a Firefox plugin which allows some clever session management features, like backing up x number of previous sessions, something I thought was already in place.

If you have had a similar horrible Firefox (or other browser-related) experience, let us know in the comments below.

This entry was posted in Browsers, HowTo, Internet and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.


  1. Yumi
    Posted 29/10/2014 at 4:36 AM | Permalink

    Thank you very much!!!

    I really knew the “sessionstore.js and sessionstore.bak” thing, but I have been searching an addon to do that and no one liked me so much. So, thanks for the addon :D the first time Firefox opens empty I searched everywhere and I didn’t know how the change worked, so I open the file and copy the likns one by one x_x then, the next time I learned how easy was all the thing…

    But I want to say something:
    1. this time (the 7th that I can remember) I tryed to change “sessionstore.js” to “sessionstore.bak” but this time it didn’t worked;
    2. so I searched changed every file named “sessionwhatever” from inside (I could destroyed the whole Firefox but it survive and auto-replace the files XD), coping the text from sessionstore.js to the other files, but again it didn’t worked;
    3. then, I copy the “sessionstore.bak” file and renamed the copy “sessionstore.js” so there were both, but it didn’t work neither…
    4. I done the same things over and over again, so the last time I get tired and tryed to delete the “sessionstore.bak” and keep the “sessionstore.js”… And IT WORKED!!!

    So, not always changing “sessionstore.js” to “sessionstore.bak” work, sometimes is the opposite :/ at least for me…

    Anyway, thanks again for the post you writted, I really like the addon :D and I should try Recuva someday…

  2. Posted 29/10/2014 at 10:47 PM | Permalink

    It’s going to be ending of mine day, but before ending I am reading this great post to
    improve my experience.

  3. Gary
    Posted 05/11/2014 at 2:13 AM | Permalink

    Ok.. Im digging around for info and came across this page.
    I just did a scan with an anti-malware program.. which decided it would replace my current profile on Firefox with an older version.. ok sounds weird.. but I had Firefox session manager set to save sessions in my designated folder ie D:/firefox sessions.

    Now.. session manager sees the standard folder in the Profile.
    Yeeks.. how can I reset it to save in my preferred location?
    Having my old sessions in MY folder has prevented them from being deleted several times.. and is an invaluable store of info.
    Hope you can advise.


  4. Posted 10/11/2014 at 8:10 PM | Permalink

    I’d like to thank you for the efforts you’ve put in penning this blog.
    I am hoping to check out the same high-grade content from you later
    on as well. In truth, your creative writing abilities has encouraged me to get my own, personal site now

  5. virtue
    Posted 11/11/2014 at 8:31 PM | Permalink

    i have lost hope, but enjoyed this article and comments. my private session is “Not Responding”. before i close it, can i save the several lifegiving tabs i have there?
    thankyou 4 ur words of hope n

  6. Posted 12/11/2014 at 12:22 PM | Permalink

    As a neophyte in this business enterdprise hass to
    be; would they want it perfect. Several services that government-to-business support small business within a
    certain extent. They coje out of a series of steps you can put that off.
    That person doesn’t have disposable income to
    replace your garage door opener. The following government-to-business five free
    business directories. Youu have tto pay somebody to hold cash.

    And we do it fastest and most efficiently. Thhe compensation plan consists of
    Durian, Mangosteen, Acai Berry, Blueberry and Grape.

  7. Posted 25/11/2014 at 5:35 PM | Permalink

    You wil need Mattress store Salesperson and time. They aree hypo-allergenic, resist dust mites, bacteria and fungi that usually
    find a home in mattresses and pillows keep away.
    We will tie all together plus give latex bed with memory foam topper yoou a hint of other important information.

4 Trackbacks

  1. [...] How to: Recover a lost Firefox session Share this:TwitterFacebookLike this:Like Loading… [...]

  2. By post brothers on 21/09/2014 at 4:09 AM

    post brothers…

    How to Recover Your Firefox Session When All Hope is Lost – TechRant…

  3. By replace tub with walk in shower on 30/09/2014 at 6:39 PM

    replace tub with walk in shower…

    How to Recover Your Firefox Session When All Hope is Lost – TechRant…

  4. By walk in tubs prices on 30/09/2014 at 7:49 PM

    walk in tubs prices…

    How to Recover Your Firefox Session When All Hope is Lost – TechRant…

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Welcome to TechRant…

    We are a group of techies from emerging students to full blown professionals who are enthusiastic about technology related subjects. Everyone has opinions and feelings about things, sometimes stronger than others. On TechRant, we will be sharing those opinions, and have a good ol' rant! We may also do non ranting type articles, like news, reviews, tutorials, tips and tricks, how-tos and even the odd interview.

  • Authors

  • Categories

  • Archives