User Agents

Firefox Restore Previous Session: How to Get Tabs Back

Yes, Firefox can restore your previous session. If Firefox closed unexpectedly or you simply want your last set of tabs back, you can use the built-in session restore feature via the History menu, the Application Menu, or by setting Firefox to always reopen your previous windows and tabs at startup.

What Session Restore Actually Does

Session restore is a Firefox feature that saves your open tabs and windows so you can return to them later. It is not the same as a bookmark: session data is stored automatically in your profile folder and is updated as you browse. When you choose to restore a session, Firefox reopens the windows and tabs that were open when the browser last closed, including the back-and-forward history for each tab in many cases.

Firefox creates session store files (named sessionstore.jsonlz4 and related backups) in your profile directory. These files are written periodically and on shutdown. If Firefox crashes, it detects the abnormal exit on the next launch and offers to restore your tabs. If it closes normally, the restore option is still available from the menu, but only until you start a new session that overwrites the previous one — typically after you open a new window or close the restore prompt.

How to Restore the Previous Session Manually

If Firefox is already open and you want your last session back, use the menu. The exact labels can differ slightly between Firefox versions and operating systems, but the path is consistent.

  1. Click the menu button (three horizontal lines) in the top-right corner.
  2. Select History.
  3. Click Restore Previous Session.

Alternatively, you can use the classic menu bar: press Alt (Windows/Linux) to show it, then go to History > Restore Previous Session. On macOS, the History menu is in the menu bar at the top of the screen. The option is greyed out if no previous session is available — for example, if you have already restored it or if Firefox has started fresh since the last close.

You can also right-click a tab and choose Undo Close Tab to reopen just the most recently closed tab, or press Ctrl+Shift+T (Windows/Linux) or Cmd+Shift+T (macOS) repeatedly to reopen tabs in the order they were closed. This is handy for a single tab but does not bring back an entire window.

Making Firefox Always Restore Your Session

If you want Firefox to reopen your previous windows and tabs every time it starts, change the startup setting. This is the most reliable way to avoid losing your session.

  1. Open the Firefox menu and click Settings (on macOS, Preferences).
  2. In the General panel, find the Startup section.
  3. Under Open previous windows and tabs, check the box.

With this enabled, Firefox treats your last session as the startup state. Note that this setting applies to normal startups; if Firefox crashes, it will still offer to restore the session regardless of this setting. Also, if you use a private window, its tabs are not saved in the same way and will not be restored.

What Happens After a Crash or Unexpected Shutdown

When Firefox does not close cleanly — because of a crash, a power loss, or a forced quit — it detects this on the next start. Instead of your homepage, you may see a prompt or an about:sessionrestore page listing the windows and tabs that can be recovered. You can select which windows to restore and click Restore. If you dismiss this page, the session may still be recoverable from the History menu, but not indefinitely.

Firefox keeps a small number of session backup files. In the profile folder, files such as sessionstore-backups/recovery.jsonlz4 and previous.jsonlz4 may contain recent session data. These are not meant for direct editing; they exist so Firefox can recover after a crash. Manually copying them is an advanced troubleshooting step and is not usually necessary for normal session restore.

Common Problems and Fixes

Sometimes the restore option is missing or does not bring back the expected tabs. Here are the usual causes and what to check.

  • The option is greyed out: Firefox has no stored previous session, often because it already restored it or because the browser was set to open a blank page and the session was overwritten. Check the Startup setting and avoid closing all windows before quitting if you rely on session restore.
  • Only some tabs return: Tabs that were discarded to save memory may reload lazily, and private browsing tabs are never restored. Very large sessions can also exceed practical limits.
  • Firefox opens a blank page instead: Verify that Open previous windows and tabs is enabled and that you are not launching Firefox with a command-line flag that overrides startup behavior.
  • Session lost after an update: Major updates can occasionally reset startup preferences. Re-check the Startup section after an upgrade.

A common misconception is that clearing history also deletes the session store. In practice, clearing browsing history from the Clear Recent History dialog can remove the data needed to restore closed tabs, so if you want to keep your session, avoid clearing history until you have restored it.

Session Restore vs. Bookmarks and Sync

Session restore is temporary by design. It is not a backup system. If you want to keep a set of pages permanently, bookmark them or save them to a collection. Firefox Sync can synchronize open tabs across devices, which is useful for continuing browsing on another computer or phone, but Sync is not a substitute for session restore after a crash on the same device. Sync stores tabs that are currently open on other synced devices; it does not preserve a history of every past session.

For users who frequently keep many tabs open, Firefox also offers tab grouping features in recent versions and the ability to pin tabs, which can make sessions easier to manage. Pinned tabs are restored with the session, which helps keep essential pages available.

Frequently Asked Questions

How do I restore my previous session in Firefox?

Open the Firefox menu, go to History, and click Restore Previous Session. You can also use the menu bar via Alt on Windows or the History menu on macOS. If the option is greyed out, no previous session is available.

Why is “Restore Previous Session” greyed out?

Firefox greys out the option when it has no stored session to restore. This can happen after you have already restored it, after clearing history, or when Firefox was configured to start with a blank page and the session was overwritten.

Can I make Firefox always open my last tabs?

Yes. In Settings > General > Startup, check “Open previous windows and tabs.” Firefox will then reopen your last session each time it starts normally.

Does restoring a session also restore private browsing tabs?

No. Private browsing tabs are not saved as part of the normal session and cannot be restored after you close the private window.

What is the keyboard shortcut to reopen a closed tab?

Press Ctrl+Shift+T on Windows and Linux, or Cmd+Shift+T on macOS. Repeat the shortcut to reopen multiple recently closed tabs in reverse order.

Can I recover a session after clearing history?

Usually not through the normal menu, because clearing history can remove the session data Firefox uses for restore. Recovery from profile backup files is an advanced step and is not guaranteed.