How to restore Firefox sessions when Session Restore is not working

Martin Brinkmann
Updated •
Firefox

If Firefox is not restoring your previous session, first try the menu button, then History > Restore Previous Session. If that option is missing or brings back nothing, recover the session by hand: quit Firefox, open the profile folder, rename sessionstore.jsonlz4, copy a backup such as previous.jsonlz4 or recovery.jsonlz4 from the sessionstore-backups folder into the profile folder, rename it to sessionstore.jsonlz4 and start Firefox again.

This guide covers the settings that stop Session Restore from working, where Firefox keeps its session files, which backup file to pick, and the exact swap procedure for the current .jsonlz4 format. Older file names are covered at the end for Firefox-based browsers that still use them.

Why Firefox is not restoring the previous session

Firefox fails to restore a previous session mostly because of a setting, the way the browser was closed, or a damaged session file. Check these causes before you touch any files, as they are the most common and the quickest to fix:

  • Startup setting: open Settings and, on the General panel, check "Open previous windows and tabs". Without it, Firefox opens your home page and keeps the old session only in the History menu.
  • History is not kept: in Settings > Privacy & Security > History, "Firefox will" must be set to "Remember history" or "Use custom settings for history". If "Clear history when Firefox closes" is on, click Settings and uncheck "Browsing & download history". This is the same option covered in our older remember my browsing and download history fix.
  • Always private mode: "Always use Private Browsing mode" must be unchecked. Private windows are never restored by design.
  • Closing windows one by one: if you close each window separately, Firefox restores only the last window you closed. Quit through the menu with Exit or Quit Firefox instead.
  • Extensions or a damaged file: tabs that come back blank or as the home page point to a conflicting add-on or corrupt session data. Test in Troubleshoot Mode, then move on to the file recovery below.

Mozilla lists these checks in its Restore previous session help article.

For the normal case, two habits make Restore Previous Session dependable. Quit Firefox in one step with Exit in the menu or the keyboard shortcut Ctrl+Shift+Q, so every open window is saved, and if the menu bar is hidden, tap the Alt key to open History > Recently Closed Windows, where one click brings back a window with all of its tabs. For sessions you cannot afford to lose, or if you want history cleared on exit, an add-on such as Tab Session Manager saves sessions independently of Firefox's own files.

Restore Previous Session not showing or not working

When Restore Previous Session is greyed out, missing or restores the wrong tabs, Firefox has already replaced the session it knows about, and the History menu cannot reach older copies. Try these built-in options first:

  1. Open the menu button, choose History and click Restore Previous Session.
  2. If that fails, open History > Recently Closed Windows and Recently Closed Tabs. These lists often still hold the windows that disappeared after an update or a restart in Troubleshoot Mode.
  3. Press Ctrl + Shift + T (Command + Shift + T on macOS) to reopen the last closed tab.
  4. After a crash, Firefox shows a restore page: select the windows or tabs you want and click Restore Session.

If none of these bring the tabs back, stop restarting Firefox. Every normal start and quit writes new session data, and repeated restarts can overwrite the older backups you still need. Copy the whole sessionstore-backups folder to a safe place before you continue.

Firefox session file location

Firefox stores session data in your profile folder: the main file is sessionstore.jsonlz4 in the profile root, and the backups sit in the sessionstore-backups subfolder. The fastest way to open the profile folder is to type about:support in the address bar and click Open Folder (Show in Finder on macOS) next to Profile Folder.

If Firefox does not start, browse to the profile manually:

  • Windows: C:\Users\<user name>\AppData\Roaming\Mozilla\Firefox\Profiles\<profile folder> (or type %APPDATA%\Mozilla\Firefox\Profiles\ in the Run dialog; AppData is hidden by default)
  • Windows, Microsoft Store version: %LOCALAPPDATA%\Packages\Mozilla.Firefox\LocalCache\Roaming\Mozilla\Firefox\Profiles\
  • macOS: ~/Library/Application Support/Firefox/Profiles/<profile folder>
  • Linux: ~/.mozilla/firefox/<profile folder> (Snap and Flatpak builds keep profiles inside their own app folders, so use about:support there)

The profile folder name usually contains "default". If you run several profiles, about:profiles shows the root directory of each profile.

Which file in sessionstore-backups to use

Each file in sessionstore-backups holds a different point in time, so pick the one that matches the session you lost. Prefer files with a normal size: a file of a few bytes or 0 KB is empty.

File What it contains Use it when
recovery.jsonlz4 The live session while Firefox runs Firefox crashed and has not been restarted
recovery.baklz4 A backup copy of recovery.jsonlz4 recovery.jsonlz4 is damaged or empty
previous.jsonlz4 The windows and tabs of your last session Firefox started without your tabs after a normal quit
upgrade.jsonlz4-<build id> The session that was open at the time of an update The other files are already overwritten; pick the newest date

After a clean shutdown, Firefox moves recovery.jsonlz4 to the profile root as sessionstore.jsonlz4 and deletes recovery.baklz4, so you will not always see every file.

How to restore a Firefox session from sessionstore-backups

To restore a session from sessionstore-backups, you replace the active sessionstore.jsonlz4 with the backup you chose while Firefox is fully closed.

sessionstore.jsonlz4 file in the Firefox profile folder

  1. Copy the sessionstore-backups folder to a safe location, for example your desktop.
  2. Quit Firefox through the menu and make sure no Firefox process is still running.
  3. In the profile root, rename sessionstore.jsonlz4 to sessionstoreOLD.jsonlz4.
  4. Open sessionstore-backups and copy the backup you want, for example previous.jsonlz4.
  5. Paste it into the profile root and rename it to sessionstore.jsonlz4.
  6. Start Firefox. If the tabs do not open automatically, choose History > Restore Previous Session.
  7. If you get the wrong session or none at all, quit, and repeat steps 3 to 6 with the next file from your saved copy.

Two details trip people up. The file extension matters: a compressed session must end in .jsonlz4, so check that Windows is not hiding a second extension. A file written by a newer Firefox version may also fail silently in an older one, so restore into the same or a newer version. These points come from Mozilla's support forum thread on recovering a session from sessionstore-backups.

Once your tabs are back, save them for good: you can bookmark all open tabs in Firefox in one step, or use an add-on such as Session Boss to save and restore Firefox sessions.

Older session files: sessionstore.js and recovery.js

Firefox used uncompressed .js session files before it switched to the compressed .jsonlz4 format in Firefox 56. Very old installations and some Firefox-based browsers may still use the older names, and the same swap logic applies to them.

  • sessionstore.js: the session from the last shutdown, in the profile root.
  • sessionstore-backups/recovery.js and recovery.bak: the live session and its backup copy.
  • sessionstore-backups/previous.js and upgrade.js-<build id>: the earlier session and the session at the last update.
  • sessionstore.bak: the backup file of the oldest versions, before the sessionstore-backups folder existed.

With the browser closed, rename the damaged sessionstore.js, copy a backup into the profile root and rename it to sessionstore.js. Because these files are plain text, you can also open them in a text editor and copy out the URLs of lost tabs if no file restores cleanly.

FAQ

Can I open a .jsonlz4 session file in a text editor?

No, .jsonlz4 files are compressed, so a text editor shows unreadable data. A session viewer such as the Session History Scrounger, recommended by Mozilla volunteers, can read the file and list the URLs so you can reopen them by hand.

Does Firefox restore private browsing windows?

No. Firefox never saves private windows to the session file, so they cannot be restored with any of the methods on this page.

Why did copying previous.jsonlz4 have no effect?

Firefox only reads sessionstore.jsonlz4 at startup, so the backup must be renamed to that exact name in the profile root. If the startup setting is not "Open previous windows and tabs", you also need to choose History > Restore Previous Session after starting.

Can I turn off the crash restore page?

Yes, setting browser.sessionstore.resume_from_crash to false in about:config stops crash restore. Mozilla warns that changing it can affect stability, security and performance, and it also removes your safety net after a crash.

Related: Undo Close Tab add-on for recently closed tabs, what to do if you lost all passwords in Firefox

Comments

  1. Tris said on
    Reply

    Thank you! None of the other suggestions from other websites worked but yours did!!!!!!

    The best!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  2. Lorenz said on
    Reply

    Thank you so much! Just had to use the previous.jsonlz4 as sessionstore.jsonlz4, hit the ‘restore previous session’ button and voilà.

  3. Virendar said on
    Reply

    Hello All,
    Is there a way to fix the restore Firefox sessions / tabs automatically without breaking head to configure the session manager or set of files.
    If there are simple steps which can help to have sessions restored automatically without having to do any reconfig or whatever.
    Can someone help.

  4. Rudolf Nagy said on
    Reply

    Thank You so much Martin!
    You saved me and my previous session.
    However the current version of Firefox give some different names to those files but with your description I was able to identify them. And I simply replaced the sessionstore.jsonlz4 file in the root directory with an older one (and I’ve renamed it to sessionstore.jsonlz4) from the sessionstore-backup folder. And it’s worked :D

  5. Anonymous said on
    Reply

    Not working

  6. Anne said on
    Reply

    Thank you for this tutorial, it helped me a lot. I thought restoring my session was a lost cause.

  7. Helmut said on
    Reply

    I’ve been using Firefox and/or PaleMoon for many, many years and had to reconstruct my session several times: always lucky in simply replacing the “sessionrestore.js” by (renamed) “sessionrestore.bak” – UNTIL TODAY: this method didn’t run any more!
    No way! X-/
    May be file corrupted (alas: opening it in a text editor could not show a solution either).

    But finally I GOT IT
    – thanks Martin Brinkmann, esp. for the idea mentioned at the end of his article!

    So in simple words this is what I did:
    – at first and before ANYTHING: safe “sessionrestore.bak”!!! (even if not running anymore)
    – if “.bak” saved(!), open FF/PaleMoon (even if there appears only one new tab instead of your whole session)
    – do not worry: go to “tools”/”addons”
    – search for “session” in “available Add-ons” and install one, in my case “session manager”
    – in its preferences tell it to ASK you which session to load on startup
    – then close FF/PaleMoon
    – re-copy “sessionrestore.bak” an rename it to “sessionrestore.js”
    – start FF/PaleMoon
    – when asked, choose your session from your preferred FF-/PaleMoon profile
    (or in the new ‘disk-symbol’ at menu-bar choose “load session”)

    =>THERE YOU ARE! :-)

  8. John said on
    Reply

    This article was great. Used it many times when the usual backup and restore failed. Thanks!! :-)

  9. Zenon said on
    Reply

    I used this article twice to reopen lots of my lost browser tabs. I used other websites, even mozilla forum, but not even one of their solutions solved the issue.

    So I would like to THANK YOU VERY MUCH for this article and for the solution. I greatly appreciate your help.

    All the best to you and to everyone you care about!

  10. nicolas said on
    Reply

    hi i have ubuntu 18.03 i havent any sessionstore File. Is whis only with windows?

    How can i make backup from sessionstore? I have sea that file “recovery.jsonlz” and recovery.baklz is after close tab change last accesss to file? I think this files are backup of sessions ?

    thanks in advance
    nicolas

  11. Mikevbh said on
    Reply

    How id Manuel gor linux?

  12. Nicolas said on
    Reply

    Hi is this help only for Windows? I havent .js files on my ubuntu 18.04 system. How can i backup all my sessions?

  13. Nicolas said on
    Reply

    Hi i didnt find .ns files on my ubunru 18.04 system. Is this manual only for windows?

  14. John Foll said on
    Reply

    Wow this still worked! Some of those files appeared to be newer than what I wanted, but I just followed the directions and it worked! I am thinking now that it might be a good idea to make periodic incremental backups of these files, so that I could manually restore them to any point in time! Many thanks!

  15. Ess said on
    Reply

    This worked nicely and saved my bacon. Several hundred tabs restored. Many thanks!

  16. Ed said on
    Reply

    I have tried all directories listed for restore but no luck. I am on MAC os running Firefox 67.
    is there a new place to find my latest restore session…i see 2016-2018 but no 2019??

  17. 115 said on
    Reply

    Win 7, FF 68.01 (64bit); Juli 2019,

    As therefore normal, updated, started, session broken
    (This is normal until the time we got Quantum – for me and many others)

    [the FF Devs also never fixed the “saved to” bug(sorry i have not the ticket number)
    (FF doesn´t remember everytime where the last file got saved to. Not fixed until now!
    (I write this so everyone who reads this can better choose if he thinks they love their baby.)]

    No i´ve searched for the session backups, found, but where are the originals of the files
    “recovery-backup.jsonlz4”
    and
    “recovery-backup.backlz4”
    ???

    Please update this Howto, thanks in advance

  18. Alan said on
    Reply

    This this this this this! Your step by step for Firefox saved my working life. Thank you so much!

  19. Michael Vinegrad said on
    Reply

    I’ve just discovered the Bookmarks and History which disappeared just before I posted on 6 March have returned. Since my post there have been several reboots, most of them unrelated; I don’t remember if I checked before today to see if Bookmarks or History were back.I still don’t have my pre-6 March tabs.

  20. David said on
    Reply

    I made flaw of trying to open firefox again which overwrote the files.

    I used Recuva to restore all the session restore files but each time it only restored one tab, I tried numerous times following instructions above for Firefox 56 and newer instructions.

    I seem to remember having to rename sessionCheckpoints.json but this did not help

    I have tried the two options that have worked for me in the past, to load some tabs and end firefox with task manager to resemble a crash or ending normally and copying the recover file to sessionstore.jsonlz4

    After repeated attempts it now does not give any options to restore tabs, I have checked about:config and setting is ok.

    It does not even show History > Restore Previous Session.

    Thanks anyway

  21. Michael Vinegrad said on
    Reply

    I’ve been trying go back to a 2 March session on 56.0.2 lost on 3 March following “Firefox 56 and newer instructions” but the latest files which appear after searching jsonlz4 are from 1 February. In addition I have other problems.
    Am I supposed to do something with its contents after opening sessionstore-backups file?
    No recovery.jsonlz files appear in the search results list.
    If the 2 March session is lost forever does #6 refer to the most recent previous.jsonlz4 before that (I have two from slightly different times on 1 February)?
    How do I open the root folder and how do I copy a file to it?

  22. Samuel said on
    Reply

    As a person who is isn’t all that tech-literate, either Mozilla is going out of their way to make things more needlessly complex with every new version they come out with, or your writing clarity suffers as you go. I followed the first part pretty well; I thought “okay, I can do this easy enough”. Then I see the NEW version, and it starts sounding a lot more complicated and arcane. I think “Okay…maybe I can do this…if I copy this picture and paste the text into a txt file for reference as I go”. Then i come to the third part, about “Mozilla 33” (this comes AFTER Mozilla 56? I don’t even know which I have, TBH), and you totally lost me. Way too many different files and names to keep track of. I think “Okay, screw this, I don’t need my old tabs back that bad!” And I may have just missed it, but what do you DO with these folders afterwards? You just rename them, and then re-open Firefox, and it gives you a “Restore Session” button which will restore to whatever files are saved in the folder you named the correct name? Also, what if you just name the newest folder? Do you really have to rename the whole sequence of them to work properly?

  23. Anonymous said on
    Reply

    5+ years out of date. Worthless.

    1. Martin Brinkmann said on
      Reply

      What do you mean? The article was updated in April 2018 the last time. Please be more precise.

  24. PLeXiM said on
    Reply

    You are a saint!

  25. Franck said on
    Reply

    Thanks a lot, this is very useful !

  26. jonathan said on
    Reply

    hy
    can i restore my os (which is android) when my firefox is giving me problems

  27. Alex said on
    Reply

    Ahhhhhh I’m SO grateful for this! Firefox lost 2 out of my 4 packed windows, was about to despair but renaming previous.js restored all of them!

  28. NJ said on
    Reply

    Hi,

    Thanks for the above. What if Firefox does not update the sessionstore.js and sessionstore.bak files? We have a system where some of our files are on a central server and some on a local machine. Some of the time the backups work but not always. I just discovered that the last backup was from December so none of my tabs and bookmarks since then are saved. Before closing firefox, how can I ‘save’ a session, i.e. be proactive rather than try to restore after the fact? I’ve read about a session restore add-on but the reviews weren’t great. Happy to do a manual save if that’s an option.

    Many thanks,
    N

  29. datruche said on
    Reply

    Thankfull
    For Martin Brinkmann of course: best detailed paper I’ve read and used on the point. And Andrew Gillett for the link that allows to go forward into recovering the [backup].js entries. And Peter’s « less elegant, less automated, but also less error-prone alternative to Session Manager is to use the Bookmark All extension: one click on the Bookmark All button » which makes perfect sense (though you loose the tabs’ navigation history).
    Very small add-ons that ease the job: these that list the tabs (like Tab Grenade) or another that auto-write opened tabs in a dead simple text file every (I think it’s opentabs).

    About KISS, I’ve made a dead simple script that open ‘mc’ on Firefox current profile and a folder so I can backup/copy/rename any needed [restore]*.js files easily (it’s synchronized between my boxes).

    Oh and people like anonymous and bart may get a brain before shouting out.

  30. Millett said on
    Reply

    Congrats, this article explain everything except how to actually restore an old session.

    1. Martin Brinkmann said on
      Reply

      Replace the file sessionstore.js in the main Firefox profile directory with a copy found in the sessionstore-backups folder by renaming the backed up file to sessionstore.js and moving it into the root directory.

      1. PhredE said on
        Reply

        ‘the root directory?!? The root of the system drive?!?
        Martin, for the rest of your life, this is worth remembering – we are NOT all administrators.
        And nor should we be; administer from an admin account, work every day from your everyday account. Basic.
        So you’re saying move another copy of sessionstore.js out of its source folder? Why not just do some renames?

        The extra challenge we have now (mid-2016) with Windows 10 is how these applications handle multiple virtual desktops.
        I was just flipping between two desktops* while Firefox/Nightly restarted, and I’ve lost one window session – I had two on different desktops. That’s looking a problem, don’t you think?
        *CtrlWin left/right

  31. Andrew Gillett said on
    Reply

    Here are some tips on how to repair a backed up session which Firefox fails to load:

    https://support.mozilla.org/en-US/questions/1050194#answer-699315

    1. Andrew Gillett said on
      Reply

      I later discovered that all I needed to do in this case (where Firefox fails to remember any tabs) was go to History and look under “Restore closed windows”. That’s dealt with the problem every time since, although it’s still worth making a backup of the profile before trying this.

  32. bart said on
    Reply

    This DAMN piece of shit has just deleted all of my tabs and the last session restore file is a month old. They add more and more crap to firefox, but they cant make the basic option work!!!!!

    1. Someone said on
      Reply

      Correction: Firefox didn’t delete your tabs. You should be implementing some sort of recovery solution.
      For the meantime, have you even tried a right click of the sessionstore.js file & restore to earlier time? Windows uses system restore to back up things like the appdata folder & allow you to not just restore the system to an earlier point, but also individual files & folders.

  33. Anonymous said on
    Reply

    I don’t even HAVE an Appdata folder, so I guess I’m just SOL…Failed restore happens all the time for me (even on proper shutdowns)-it’s a sick joke of a browser~

    1. Someone said on
      Reply

      Obviously you shouldn’t be using a computer. Locating the Appdata folder is one of the easiest tasks you can try to do on a computer. Also, Firefox has a lot more to offer than any other browser out there right now.

    2. stache said on
      Reply

      Try clicking on the window icon or key (the one with 4 boxes) select This PC.
      In the search box enter appdata and it will show you the files with in the directory.

      If you search for sessionstore it should show you the path to where the two firefox recovery files are.

      Hint:
      You cannot have firefox as your default application. Why? because every popup window will be using firefox and unless firefox is already open, it will open it and display the popup. When you close the window it will over-write your sessionstore files.

  34. Thankful said on
    Reply

    This worked for me. Thank you Martin Brinkmann!

  35. Jimmie said on
    Reply

    What do this mean awaiting moderation, was hopeing for a solution

    1. Someone said on
      Reply

      What do this mean? Get an iphone & stop messing about on a computer. Also maybe use a IE, it’s made for people like you. Honestly, your comments are not only almost illegible nonsense, but completely irrelevant to this post. I am not sure how you even managed to log onto a computer & get online, but then again they have made it too easy these days.

  36. Jimmie said on
    Reply

    Got this notice that The connection to the server was reset while page was loading. what do this mean ? i was playing the Farmtown game on Fcebook .Now i am not able to get there at all.

  37. Jerry Stark said on
    Reply

    The recently closed tabs and windows were shaded and not available.

    I looked in all the files listed above for the sessionrestore and they varied in content. What I could read appeared to be information records from a single session, particular search paths, and other content appeared to be packed info and unreadable. None appeared to have content for all the files and links that should be restored.
    I am using MS’s computer search to find things as most of the paths use a link containing “users\name\AppData” which do not exist anywhere in directory lists. I’m not sure where that actually points to.

  38. Jerry Stark said on
    Reply

    I have been using restore session for years, and have relied on it to bring back the 25 or so projects that I have going on at any time as well as reminder tabs of things I must do. Well I just had my first problem with resume session.
    Recent Changes: I had updated from Vista to windows 7 a few weeks back and have had a few problem such as:
    – I modified the power options using a custom plan. can not access any of
    the power options since adding the custom plan.
    – I have problems with the ASUS BIOS not able to open asus.io, Asus has
    no idea what is happening. Not sure of the file name right now.
    Back to the present:
    – Firefox restore has worked flawlessly for years.
    – I exited from Firefox and was doing some file work. The system locked up and would not respond and after a good while I did a shut down. I restarted window 7 after a day had passed and it failed to restore my sessions. It did not ask me if I wanted to restore my previous sessions.
    Not knowing the consequences I thought maybe if I restarted the system again it would work, my ignorance.
    I did a search on the sessionstore files and found the following:
    – could not copy the data, so this is a summary:

    1) – 1 files sessionstore C::\users\name\AppData\Roaming\Microsoft\windows\Recent Items 6/20/2013 10:31PM Size11.5kb LNK file

    2) – 1 files C:\users\name\recent 6/20/2013 10:31PM size 11.5kb LNK file

    3) – 1 files sessionstore-1.js C:\users/name\AppData\roaming\microsoft Windows\Recent items 10:31PM 14.6kb LNK file

    4) – 1 files sessionstore-1.js C:\users\name\Recent 6/20/2013 10:31 PM size14.6 kb LNK file

    5) – 1 files sessionstore.js C:\users\name\AppData\Roaming\Microsoft\Windows\Recent Items 6/20/2013 10:28PM size 15.2kb LNK file

    6) – 1 files sessonstore.js C:\users\name\Recent 6/20/2013 10:28PM size 15.2kb LNK file

    7) – 1 files sessionstore.bak C:\users\name\AppData\Roaming\Microsoft\windows\Recent Items 6/20/2013 10:22 PM size 1.34kb

    8) – 1 files sessionstore.bak C:\users\name\Recent 6/20/2013 10:22PM size 1.34kb LNK file

    9) – 1 files sessionstore.js C:\users\name\AppData\Roaming\Mozilla\firefox\profiles\H5evpaz1.default
    6/20/2013 6:44 PM size 3.62 js file

    10) – 1 files sessionstore.bak C:\users\name\AppData\Roaming\Mozilla\Firefox\Profiles\h5evpaz1.default 6/20/2013 6:31PM size 3.54kb bak file

    11) – 1 files sessionstore-1.js C:\users\name\AppData\Roaming\Mozilla\Firefox\Profiles\h5evpaz1.default 4/15/2011 5:56PM size 4.91 Bak file

    – I tried to look at the files with wordpad and notepad, got different results.
    – I could see some text but there was lot that seemed like it might be compressed information?
    – It seemed that these files were tied to the activity during that day rather than a full collection of all the info for all the windows and tabs that should be restored.
    – I backed up the system on May 5, 2013 but I had a lot of new information on various new tabs since that date. I can use the sessionstore files from that backup to get some of the info back but I guess the more recent information is unrecoverable?
    It is late and I am tried, let me know where I stand or what info you would need to access my problem.
    Thanks to who ever responds.

    1. Martin Brinkmann said on
      Reply

      First, backup you profile before you start Firefox again.

      Did you check the recently closed windows listing in the Firefox History?
      Do you have a sessionrestore.bak file in your profile folder?

  39. Jojo said on
    Reply

    I’ve run into lost sessions with FF now & then. Sometimes it is my fault because I have a 2nd FF window open behind the main window that I forgot about and it has only one tab open. I close the main window but forgot about the other window, so FF saved the tab from the one tab window. Oh no. It is good to know about the session backup file.

    Anyway, over the years, I learned to take out some insurance and save all open tabs in the main window before I close the window in a bookmark folder called ‘Tab save’.

    1. Martin Brinkmann said on
      Reply

      You can reopen windows from the history menu.

  40. Doug said on
    Reply

    Martin, I’ve had the same problem with lost Firefox session info, and have a pretty simple improvement, or at least the concept; if Firefox could save the last two backups, then it would at least be harder to overwrite them all while trying to get Firefox working properly. I cannot see how this would be too difficult a programming challenge, and if the Firefox people don’t like the idea, then it might be a good option to add to the Session Manager add-in.

  41. Peter said on
    Reply

    My apologies if the following comment is somewhat off-topic.

    Like tPenguinLTG, I use the Session Manager extension (but in Windows). It’s been a great extension for some time (years?) — far more powerful and useful than Firefox’s built-in Session Restore feature — but in the past couple of weeks I’ve been having a severe problem with Firefox (plus a minor one), and I suspect that either Session Manager, or the way Firefox handles Jetpack (restartless) extensions, is involved.

    The severe problem: Session Manager doesn’t load after Firefox is launched, and the Firefox process hangs at 0% of CPU. Or, Firefox doesn’t load after a session is restored from Session Manager’s initial appearance. Or, Firefox doesn’t load after Session Manager’s initial appearance is *canceled.* Or, Firefox loads after Session Manager’s initial appearance is canceled, but some parts of Firefox’s UI (e.g., Close Tab button) don’t get loaded. The only workaround seems to be to start Firefox in Safe Mode, exit, then restart Firefox normally, cancel Session Manager, wait until Firefox loads all the way and finishes running its initial tasks (automatic extension updates, Firefox Sync, etc.), and only *then* try to restore an old session from within Firefox. It’s a major problem, and another Session Manager user I know is having it, too.

    The minor problem: After you initially load Firefox, some restartless extensions don’t work unless you disable them and then immediately re-enable them (without restarting in between). Any pages you want to use the re-enabled extension on have to be refreshed, as well. So far, I’ve noticed this problem with the cifFix extension and the YouTube Smart Pause extension. Not the end of the world, but a fixworthy bug is probably in there somewhere.

    A less elegant, less automated, but also less error-prone alternative to Session Manager is to use the Bookmark All extension: one click on the Bookmark All button, and your entire session is bookmarked under its own date- and time-stamped bookmarks subfolder.

    I recommend replacing the extension options’ proposed defaults with “[Bookmarked Sessions]” or “[Saved Sessions]” (with no quotes) for the first option (the name of the parent folder), and “Session of ” (with a space at the end and no quotes) — or nothing at all (an empty box) — for the second option (the prefix for the subfolders). [Bookmarked Sessions] and [Saved Sessions] should sort out toward the top of the Bookmarks Menu and are easy to distinguish visually from other bookmark folders.

    The downsides of Bookmark All: you have to remember to click on the Bookmark All button; I don’t think it knows the difference between pinned and unpinned tabs; and I don’t think it knows the difference between tabs in the foreground (displayed) group and tabs in background (undisplayed) groups. The upsides: it doesn’t screw with Firefox or get screwed *by* Firefox, and the sessions it saves will get picked up by whatever bookmark-syncing utility you happen to use.

    1. Martin Brinkmann said on
      Reply

      Peter, first thing I would try is disable all extensions but Session Manager and see if that resolves the issue. It may be that another extension that is interfering with Session Manager.

      1. Peter said on
        Reply

        Thanks, Martin!

        I think you may be right. I didn’t run into any problems with Session Manager as the sole enabled extension. I was using a *lot* of extensions (~50). Since running the initial test, I have re-enabled 25 of the ones I consider essential or most useful, and Session Manager has continued to work smoothly over the course of four or five restarts.

        I will have to do more testing (something I thoroughly enjoy, as you might imagine) to be certain, but I now wonder if the “TabGroups Menu” extension might be the culprit. I think both my friend and I had started using that extension not too long before our problems with Session Manager began cropping up. But I’ll have to test to be sure.

        Again, thanks for prodding me to test!

    2. tPenguinLTG said on
      Reply

      I don’t get that problem, and it’s probably because I have Master Password+ installed, so Firefox loads (I think) while I’m typing in my password.
      https://addons.mozilla.org/en-US/firefox/addon/master-password/

      Oh, and I found Martin’s review:
      https://www.ghacks.net/2011/12/31/save-and-load-firefox-sessions-with-session-manager/
      I can’t help but think I might have actually found the extension because of that.

      1. tPenguinLTG said on
        Reply

        Or is it because I’m on the ESR channel?

  42. tPenguinLTG said on
    Reply

    I just use the restartless add-on Session Manager:
    https://addons.mozilla.org/en-US/firefox/addon/session-manager/

    I have a habit of accidentally pressing Ctrl+Q when I mean to press Ctrl+E or Ctrl+Tab, and I have Firefox set to clear my data after the session. With Session Manager, I could go back to a session from a few days ago if I wanted to.
    Coupled with Dropbox, I use it to sync my sessions across my computers.

    1. Martin Brinkmann said on
      Reply

      It is a great extension, I agree. I have reviewed it here somewhere on the site as well.

Leave a Reply

By commenting, you accept our privacy policy and keep the discussion respectful and on topic.