How to save a Firefox session (built-in options and Session Boss)
To save a Firefox session, turn on "Open previous windows and tabs" under Settings > General > Startup so Firefox reopens everything at the next launch. For a copy you control, use Bookmark All Tabs (Ctrl+Shift+D) or a session manager extension such as Session Boss, which saves windows and tabs automatically on a schedule and lets you restore or export them later.
This guide covers the built-in ways to save and restore a Firefox session, where Firefox keeps session data on disk, and how Session Boss works when you need named, restorable snapshots of your tabs.
Save your Firefox session automatically with Session Restore
Firefox Session Restore saves your open windows and tabs continuously and reopens them at startup once you enable it. It is off for many default installs, which open the home page instead.
- Click the menu button (three horizontal lines) and select Settings.
- Stay on the General panel and find the Startup section.
- Check "Open previous windows and tabs".
- Close the Settings tab. Changes save automatically.
Two habits keep the saved session complete. Quit Firefox from the menu (Exit on Windows, Quit on macOS and Linux) instead of closing windows one by one: Mozilla notes that if you close windows individually, only the tabs of the last window are restored. And remember that private windows are never restored, by design. Pinned tabs come back, and you usually stay signed in to the sites you were using.
If the setting is off, you can still bring back the last session once: open the menu, choose History, then Restore Previous Session. When Session Restore does not work correctly, an independent backup is the safer choice.
Save open tabs as bookmarks or a tab group
Bookmarking all tabs is the quickest built-in way to keep a permanent copy of a Firefox session that survives updates, crashes and profile mistakes. Press Ctrl+Shift+D on Windows and Linux or Command+Shift+D on macOS, name the new folder, and Firefox stores every tab of the current window in it. To reopen the set later, right-click the folder in the bookmarks library or toolbar and open all bookmarks in tabs. The ghacks guide to bookmarking multiple tabs in Firefox covers selecting only some tabs.
Tab groups are the second built-in option. Right-click a group label and choose "Save and close group": the group leaves the tab bar and waits in the List all tabs menu until you reopen it. Mozilla states that tab groups are local only and do not sync with Firefox Sync, so they are a workspace tool, not a backup. If the feature is new to you, see how tab groups work in Firefox.
Where Firefox stores the session file
Firefox stores the current session in a file named sessionstore.jsonlz4 inside your profile folder, which holds the open tabs and windows. Copying this file while Firefox is closed gives you a raw backup of the session.
- Open the menu, choose Help, then More Troubleshooting Information (about:support).
- Next to Profile Folder, click Open Folder (Show in Finder on macOS).
- Close Firefox, then copy sessionstore.jsonlz4 to a safe place.
The file is compressed, so it is not human readable, and restoring it means copying it back into a closed profile. That makes it a last-resort safety net rather than a daily tool. The page on about:profiles in Firefox explains how profiles are organized if you run more than one.
Session Boss: save and restore Firefox tabs with an extension

Session Boss is a free Firefox extension by William Wng that saves windows and tabs as restorable sessions, automatically and on demand. It adds a toolbar icon; the main interface lists user sessions, automatic backups and all sessions, each with search and sorting by time, group or name.
According to its Firefox Add-ons listing, the extension offers:
- Scheduled backups every 15 minutes, hourly, daily, weekly and monthly, keeping three copies per interval.
- Backups on change, saved 30 seconds after a tab URL changes, with eight slots.
- Manual saves of the current window or all windows.
- Restore of a whole session, a single window or single tabs, with container support and lazy loading so large sessions do not freeze the browser.
- Groups, renaming, undo and redo for saved sessions.
- JSON export and import of all or selected sessions.
Restore options let you replace the current windows or open the saved session in new windows next to what is already open. Since version 2.10, private windows are excluded from saves by default; you can include them in Preferences.
Session Boss limits and permissions
Session Boss cannot save per-tab navigation history, so the Back button is empty after a restore. Internal and local pages such as about:addons or file:// addresses are listed in a session but cannot be reopened automatically; copy the address and open it manually.
The extension asks for access to browser tabs and downloads, and its cookies permission triggers the "Access your data for all websites" install notice. The developer states that it collects no data and sends nothing to outside servers. Before you install an older version over a newer one, export your sessions: the listing warns that a downgrade can overwrite saved data. Check the listing for the current version and update date before you rely on it, since session managers depend on Firefox extension APIs that change over time.
Which method should you use?
The right way to save a Firefox session depends on whether you want convenience, a permanent copy or several restorable snapshots.
| Method | Best for | Main limit |
|---|---|---|
| Open previous windows and tabs | Picking up where you left off every day | Only the latest session; no private windows |
| Bookmark All Tabs | A permanent, syncable copy of one window | Manual, one window at a time |
| Save and close tab group | Parking a project's tabs for later | Local only, not synced |
| Copy sessionstore.jsonlz4 | Raw backup before risky changes | Restore only with Firefox closed |
| Session Boss | Many dated snapshots, export to JSON | No tab history, third-party extension |
A practical combination for most people: enable Session Restore for daily use and add Session Boss or a bookmarks folder for the sessions you cannot afford to lose.
FAQ
Can you save a Firefox session without an extension?
Yes. Enable "Open previous windows and tabs" in Settings, bookmark all tabs with Ctrl+Shift+D, or save and close a tab group. All three are built into Firefox.
How do I reopen a closed window or tab in Firefox?
Press Ctrl+Shift+N to reopen the last closed window and Ctrl+Shift+T to reopen the last closed tab (Command instead of Ctrl on macOS). The History menu also lists Recently Closed Windows and Recently Closed Tabs.
What happens to my session after a Firefox crash?
Firefox usually offers to restore the last session on the next launch, where you can pick the windows and tabs to bring back. If it crashes again during restore, start a new session and recover tabs from the History menu.
Related: export Firefox sessions to bookmarks or HTML files, reload previous Firefox sessions
And how do I delete an user session?
Same menu, see comment above.
How do I rename a session?
You need to select the Session and click on the menu (the three dots) and select the rename session menu item.
Please, advise where are the session backups stored? Is there a possibility to change the directory location to save and backup/restore sessions needed?
I’m not sure where the information is stored by default. Session Boss does support options to export and import individual sessions or all of them.
From earlier questions, it appears that this cannot be used to restore earlier sessions in Firefox from before this extension is added, correct?
For how long these sessions are preserved? How many of them you can store?
“Session Boss lists internal pages like about:addons but it cannot restore them. You may copy and paste the URLs to restore them as Session Boss keeps track of those.”
Where can one find this list? I have two frozen *private windows (can’t even navigate the tabs) and I’m trying to find a way to save the internal tab pages, not just the current url. It doesn’t matter if they can’t be automatically restored.
No extension I found for Firefox Quantum seems to be able to do that.
Any help would be greatly appreciated!
No disabling of automatic session backup option, no option to save sessions on exiting or closing Firefox, no support for sessions saved by Session Manager (I suppose that means no way to easily and straightforwardly migrate the 5+ years’ worth of archived sessions I’ve created and edited, hundreds of them, which I am loathe to discard or let go of)…
Martin, having read your tech articles online for years, I have great respect for your expertise and journalistic integrity, so I’m asking you to please be frank: how close are we to having what amounts to WebExtension-operation, post-v56.0.2 Firefox Session Manager back? I’m still using that version of Firefox because of my hope that I might be able to resume updating Firefox immediately upon notification of a new version, as I always did, with Session Manager back on the “active” list.
Best regards, and thank you!
@Valvicus: I feel your pain. Session Manager is no longer optional for me. I’ve been using it for practically its entire life. The author of Session Manager says that some of the API’s he depends on will have no equivalent in the new WebExtensions and he will not be attempting a port. It is Session Manager alone that will pin me forever to a version like Waterfox which ain’t gonna go there and remove the old API.
I believe, but am not sure, that a site is being created to hold all of the pre-WebExtensions add-ons and present an interface similar to Mozilla’s current one. At some point those old add-ons will no longer be available via Firefox.
@Valvicus:
You can still open your Session Manager sessions in:
* Firefox ESR (until it jumps to WebExtensions-only on 9 May 2018, or longer if you don’t upgrade)
* Pale Moon (indefinitely)
* Basilisk (indefinitely, but Basilisk is in beta)
* Waterfox (not personally tested, but probably, until it dumps XUL/XPCOM extensions)
I use a shared (common) sessions folder for the first three browsers and will use the same folder for Waterfox as well, when I get around to loading it with extensions and configuring it. Similar to several other extensions (like Tab Mix Plus, NoScript, and uBlock Origin), being able to export and import Session Manager settings from the extension’s “Options” comes in handy when you’re setting up a new compatible (pre-Quantum Firefox-family) browser.
Uh, does anybody know where this went? It’s gone from the FF add-ons page. My FF 59 was acting a little buggy in recent days – randomly bringing up old tabs from prior sessions when I’d try to click on an existing tab that hadn’t loaded yet – and I suspected this add-on was the culprit so to test, I thought I would uninstall then reinstall.
I uninstalled it, then went back to its add-on page (which I had visited minutes before, I swear!) to reinstall it, and the page was gone.
It is available again.
It is not available right now and does not show up at all on FireFox’s site.
Thank you! I just noticed this this morning as well and hadn’t circled back to post an update.
Try Tab Session Manager https://addons.mozilla.org/en-US/firefox/addon/tab-session-manager/
I save my tabs manually every evening because they have gotten lost or corrupted on occasion. I keep 3 days of backup’s.
What I would like to see is something that would warn me when I went to close a window with less tabs than any other open window. Because what often happens to me is that I have a secondary window open with one tab that I forgot about. I close the main browser window and I am left with the secondary window, which will save that ONE tab and I will lose all the other open tabs. I hate when this happens!
Is there an option to save session on exit / closing FF?
No such option in this version.
This extension seems interesting. I hope the developer releases it to Chrome
Me too.
Does it support sessions saved by Session Manager?
I guess you could use Firefox 56 Portable with both Session Manager and Session Boss installed, copy-paste your sessions into this profile, then load sessions with Session Manager and save them with Session Boss. Then copy-paste Session Boss sessions into your main Firefox 58 or 59 install.
No, it works independently.
Does it have a setting where i can disable automatic session backup? So only i can do user backups when i want to.
I could not find such an option.
Good UI, I like it.
Sweet!
Definitely will be giving this a try. Session restore is the only thing I’m missing with the change to webextensions.
Thank You Martin!
Nice start on the addon, I do have some suggestions, if I may.
If using a Dark Theme, the icon is too bright in my opinion. Would be great if a lighter opacity could be used when needed. For now, I’ve added: #sessionboss_william_wong-browser-action { opacity: 0.7; } to my userchrome.css file.
If the extension is pinned to the overflow menu it is unusable because of the lack of scrollbars. I for one would prefer everything except for uBO and No-Script Suite Lite pinned to the overflow menu.
The option for auto and/or manual backups along with different intervals for auto backups would be great. Also, being able to limit the maximum number of auto sessions saved would be nice, I already see three.
Thank You, Sir!