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. Orthoman
    Posted 26/08/2014 at 12:14 AM | Permalink

    Just Brilliant !
    Saved a lot of work..thx man.

  2. Posted 27/08/2014 at 1:35 AM | Permalink

    Incredible points. Great arguments. Keep up the
    good effort.

  3. Posted 29/08/2014 at 12:52 PM | Permalink

    First off I would like to say great blog! I had a quick
    question that I’d like to ask if you do not mind.
    I was interested to find out how you center yourself and clear your thoughts before writing.

    I’ve had a hard time clearing my thoughts in getting my ideas out.
    I do take pleasure in writing but it just seems like the first 10 to 15 minutes are generally wasted simply just
    trying to figure out how to begin. Any suggestions or hints?

  4. Posted 01/09/2014 at 2:47 PM | Permalink

    Iniyial Royal Revolt game has been one of the primary truily superior games ith respect to Wineows
    os 8. The adventure have fun with put tigether smooth a touch-screen combat that includes
    light system components, producing for a particular habit forming change tower self defense adventure.

    Royal Revolt 2 for windows substantially improves equipments
    to the fully Player-VS-Player targeting concentrate.
    The good news is, the actual habit-forming verizaon core game play endures virtually fully undamaged.

    Shield together with guard

    Compared too the mmain computer game, Royal Revolt 2 Windows Game posseses an particular building
    a good defense component. You now improve the battlefield which invading professionals will follow enroute on your
    castle. Assailants obtain a portion off your current gold which is soft currency for the purpose of just about every wind generator tower and even protectig structure individuals damage.

    If a superior seems to knock down your citadel gates,
    people leave which also has a big percentage of your rop
    nonethelewss never everything They will only havve a short amount of opportunity to complete the attack.

    Laying down the resistie way can be simplier and easier.Rocks as well as destroys prohibit features of build-able area.
    That expenses gemstones to crystal clear the road,therefore not necessarily
    everybody can certainly make area. The length of the road, range
    oof systems as well ass barricades / barriers, and even health with
    thhe Adventuree Checkpoint by itself are typical dependant on the
    gateway level. Personal systems along with defenses should
    also turn out to be leveled independently.

  5. Posted 22/09/2014 at 6:28 AM | Permalink

    Gookgle Sites is a website builder that is quick and easy to learn. They might keep visiting it over and over or a lot of them might mention it to their friends and relatives.
    What drew me in about this offer was the price – only ten dollars.

  6. Posted 26/09/2014 at 3:26 PM | Permalink

    Nice blog right here! Also your web site a lot
    up very fast! What web host are you the use of? Can I am getting your affiliate hyperlink on your host?

    I desire my website loaded up as quickly as yours lol

  7. TC
    Posted 07/10/2014 at 4:38 PM | Permalink

    Thank you, Ben!

    However, I found your Recuva image confusing. I was unsure why you chose to recover all sessionstore.js files that Recuva found. I instead chose to restore only the most recent, fully recoverable sessionstore.js file. I saved it in my “Documents” folder (ignoring the Recuva message indicating I might lose data if I restore to the same file path; why this message appears when I have clearly indicated I am NOT restoring the sessionstore.js file to its original file path, but rather to my “Documents” folder, is beyond me).

    Unlike your example, I did not see a sessionstore.bak file in the Recuva report. Reading comments here I see others reporting the same discrepancy. Turns out this was not a problem. Here’s what I did after recovering the sessionstore.js file and saving it to my “Documents” folder…

    1. Exit firefox.

    2. copy sessionstore.js from my “Documents” folder and paste to the appropriate firefox profile location (whose file path you note in your article above).

    3. rename the sessionstore.js file (the one that I just pasted to the appropriate firefox profile location) to sessionstore.bak.

    4. paste the sessionstore.js file again to the appropriate firefox location. So now, at that location I have a sessionstore.js file and a sessionstore.bak file. Both contain the same data (whose contents were recovered using Recuva).

    5. restart firefox and mission accomplished!

    Thanks again.

    p.s. HOW IS IT MOZILLA’S FAIRLY USELESS INFORMATION ADDRESSING THIS ISSUE GETS ALL THE GOOGLE SERP LOVE AND YOUR POST IS BURIED SOMEWHERE BEYOND P.1? I think we see here one reason why the importance of backlinks to Google’s indexing crawler is being scaled back, while a web page’s “engagement” factor is being given more weight. You might consider commenting at relevant Mozilla posts and directing attention to your post here. Not to be sneaky, but rather on account the Mozilla Help pages are fairly useless.

  8. Posted 08/10/2014 at 7:18 AM | Permalink

    Hi there i am kavin, its my first time to commenting anyplace, when i read
    this paragraph i thought i could also create comment due to this sensible post.

  9. Posted 10/10/2014 at 10:57 AM | Permalink

    Thank you a bunch for sharing this with all of us you
    actually realize what you’re speaking approximately! Bookmarked.
    Kindly additionally consult with my web site =). We could have a hyperlink exchange agreement among us

  10. Posted 14/10/2014 at 6:13 PM | Permalink

    Thank you very much for the detailed instructions for restoring a crashed and lost Firefox session on a Mac. It is much appreciated.

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