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. Posted 31/05/2015 at 4:13 AM | Permalink

    The health of women’s nipple color or areola is pale red or brown powder.
    If the electrical charges don’t act together at the
    right time, different parts of the atria (the source of AF) may contract before others, and so
    you end up with a quivering mess. They also get a sense of how
    rewarding it is when you solve problems.

  2. Posted 31/05/2015 at 4:49 AM | Permalink

    Probably one of the most critical things when you are just
    beginning as an affiliate.

  3. Posted 12/06/2015 at 6:43 PM | Permalink

    red blotchy itchy rash on face random red bumps on skin itchy small red bumps on arms not
    itchy baby born with red mark on eyelid small red bump near
    groin red not itchy spots body flesh colored bumps on legs and

  4. Michael Waldner
    Posted 19/06/2015 at 3:31 AM | Permalink

    I’ve tried sincerely hard to get the methods stated on this page (and some of the methods stated in the comments as well) to work, but I’ve met with no luck in recovering the some 200 tabs that I’ve lost.
    Using Recuva, the two most relevant files I managed to find were a “recovery.bak” file and a “recovery.js” (other than some sessionCheckpoint.json and store.json.mozlz4 files that seemed of little use). I couldn’t any files labeled as “sessionstore”.
    I tried a couple dozen of times using these two files to as specified in the article and by other comments. Exiting Firefox, deleting the existing relevant files, moving and renaming the new files as replacements, and starting firefox again. Every time the “restore session” function is grey’d out blank, as if it isn’t reading the files I put there. After I exit firefox again the files I put in are wiped and replaced with the auto update versions.

    I can only assume one of these is the problem,
    —– The files I’m using aren’t the correct ones.
    —– The files are correct but I’m messing up somewhere along the steps.
    —– Something is going wrong with my Firefox itself in how it doesn’t react to my replacement files.

    If anyone has any thoughts or advice on what’s doing wrong, I would appreciate it.
    I’m using Firefox 38 on a Windows 7 laptop hp computer.

    • Bianca
      Posted 14/10/2015 at 7:34 AM | Permalink

      I am having the exact issue. The sessionstore seems to have dissapear to be rename recovery. Furthermore, I am unable to find any recovery file dating earlier than yesterday crashing time on my pc – and had some 48 school sessions open on my computer.

      I am using the latest version of firefox on a windows 10 dell computer.

  5. Posted 03/08/2015 at 6:56 PM | Permalink

    Nero linguistic programming or NLP is recognized to one of the most natural and organic means because it mainly concerns in regards to the habits of the person as an alternative
    to the need to take any supplements. By eliminating Gluten from our diet, we give
    our intestines a chance to cure the damage Gluten previously
    caused. Some people think the answer is to starve themselves as bikini season approaches, but bodies are also developed
    to store much more calories when we do not eat enough.

  6. Posted 14/08/2015 at 4:44 AM | Permalink

    These are hugely important pillars of any business that will
    typically define how you will be working on a daily basis.

    Later on you have to optimize your home internet business site.
    However if your merchant account provider is offering you online credit card processing services than you do
    not have to worry about such details.

  7. Posted 19/09/2015 at 1:45 PM | Permalink

    hello friends i found the new example of Android Session Management

  8. a
    Posted 19/09/2015 at 1:47 PM | Permalink

    hello friends i found the new example 0f Android Session Management

  9. Posted 19/09/2015 at 1:52 PM | Permalink

    hello friend i found new example of Android Session Management

  10. Posted 19/09/2015 at 1:53 PM | Permalink

    hello i have find new example of Android Session Management

8 Trackbacks

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