Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

A way to always have a clean session (no tabs) everytime Firefox starts?

  • 4 replies
  • 14 have this problem
  • 66 views
  • Last reply by Kencho

more options

For my needs I must have only one tab open when firing Firefox.

I've tried the following parameters in about:config:

  • browser.sessionstore.enabled = false
  • browser.sessionstore.max_concurrent_tabs = 1
  • browser.sessionstore.max_resumed_crashes = 0
  • browser.sessionstore.resume_from_crash = false
  • browser.tabs.loadInBackground = false

However, it occasionally opens two or three tabs when I start Firefox.

It is usually closed by killing the process, but that shouldn't be an issue as it's told to not store the sessions and not restoring them after a "crash".

Is there something else I should look at?

Thanks a lot in advance.

PS: Although they aren't listed in the troubleshooting information below, the aforementioned parameters do actually display as modified in about:config.

For my needs I must have only one tab open when firing Firefox. I've tried the following parameters in ''about:config'': * browser.sessionstore.enabled = false * browser.sessionstore.max_concurrent_tabs = 1 * browser.sessionstore.max_resumed_crashes = 0 * browser.sessionstore.resume_from_crash = false * browser.tabs.loadInBackground = false However, it occasionally opens two or three tabs when I start Firefox. It is usually closed by killing the process, but that shouldn't be an issue as it's told to not store the sessions and not restoring them after a "crash". Is there something else I should look at? Thanks a lot in advance. PS: Although they aren't listed in the troubleshooting information below, the aforementioned parameters do actually display as modified in about:config.

Modified by Kencho

Chosen solution

Firefox 4 will always try to restore a session if you let it crash by killing that process because that leaves a file sessionstore.js with a running flag. Firefox 4 uses sessionstore.js to store the App Tabs and Panorama tab groups, so if you use any of those then they get lost. If Firefox is closed properly then the last session can be restored via the History menu or a button on the about:home page.

You can try to launch Firefox with one specific page by adding that URL to the command line in the desktop shortcut. I haven't tested if that works with a forced close, so you have to try that yourself to see if that works.

Read this answer in context 👍 0

All Replies (4)

more options

Chosen Solution

Firefox 4 will always try to restore a session if you let it crash by killing that process because that leaves a file sessionstore.js with a running flag. Firefox 4 uses sessionstore.js to store the App Tabs and Panorama tab groups, so if you use any of those then they get lost. If Firefox is closed properly then the last session can be restored via the History menu or a button on the about:home page.

You can try to launch Firefox with one specific page by adding that URL to the command line in the desktop shortcut. I haven't tested if that works with a forced close, so you have to try that yourself to see if that works.

more options

cor-el, thanks a lot for your reply. It's very helpful, honestly. I still have to try some changes based on your answer, and as soon as I get some positive results, will mark it as solved.

Launching Firefox with a URL as an argument doesn't work, unfortunately. It was actually the first thing I tried, but it opens the URL as a new tab, so my problem is still there.

Thanks again. Will do some research now :)

more options

A possibility is to use a script when you launch Firefox and delete the file sessionstore.js in the profile folder before starting Firefox. That will only work for the profile that you specify in that script file, so it is best to specify that profile for Firefox as well (-P "profile name")

more options

Thank you very much for your insights, cor-el. Seems to be working so far :)