Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, 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

How to never, never, never, never, ***never*** (!!!) restore previous session?

  • 4 valiny
  • 0 manana an'ity olana ity
  • Valiny farany nomen'i hippoman1
  • Open

Please forgive me if this question was already answered and that I might have accidentally overlooked that answer.

I'm running Firefox 144.0 (64-bit) under Debian 13 (linux).

I want to configure Firefox to never restore any previous session when it starts up, irrespective of how Firefox was last exited.

Even if a running Firefox session was externally killed via some sort of system command or because of a reboot, I never, never, never, never, never, never, never, NEVER (!!!) want it to restart in any previous session.

I ALWAYS (!!!) want Firefox to launch with its default start page, no matter what.

I tried all of the suggestions that I have found on line about how this might be accomplished, but with each one of them, there are cases where the previous session was restored.

I repeat, I do NOT (!!!) EVER (!!!) want the previous session to be restored, under any circumstances.

Is there a way to accomplish this?

Thank you in advance for any suggestions, and again, please accept my apology if this has been answered and I overlooked that answer.

Please forgive me if this question was already answered and that I might have accidentally overlooked that answer. I'm running Firefox 144.0 (64-bit) under Debian 13 (linux). I want to configure Firefox to never restore any previous session when it starts up, irrespective of how Firefox was last exited. Even if a running Firefox session was externally killed via some sort of system command or because of a reboot, I never, never, never, never, never, never, never, NEVER (!!!) want it to restart in any previous session. I ALWAYS (!!!) want Firefox to launch with its default start page, no matter what. I tried all of the suggestions that I have found on line about how this might be accomplished, but with each one of them, there are cases where the previous session was restored. I repeat, I do NOT (!!!) EVER (!!!) want the previous session to be restored, under any circumstances. Is there a way to accomplish this? Thank you in advance for any suggestions, and again, please accept my apology if this has been answered and I overlooked that answer.

All Replies (4)

You can use Private Browsing mode as that doesn't store session data in the profile folder.

cor-el said

You can use Private Browsing mode as that doesn't store session data in the profile folder.

Thank you very much!

This will work, but I'm concerned that then I will have to live with any limitations and restrictions that come with Private Browsing mode. Perhaps that won't be a problem, but I'm not sure.

However, this solution now got me thinking about another possibility ...

Where exactly in the profile folder is the session data stored? Perhaps I could always use a script to launch Firefox, with this script deleting the session data before performing the actual launch.

Is this a possibility?

You can possibly make the sessionstore-backups folder read-only.

You will normally find these files in the sessionstore-backups folder:

  • previous.jsonlz4 (cleanBackup: copy of sessionstore.jsonlz4 from previous session that was loaded successfully)
  • recovery.jsonlz4 (latest version of sessionstore.jsonlz4 written during runtime)
  • recovery.baklz4 (previous version of sessionstore.jsonlz4 written during runtime)
  • upgrade.jsonlz4-<build_id> (backups created during a Firefox update)

You can copy a file with Firefox closed from the sessionstore-backups folder to the main profile folder and rename the file to sessionstore.jsonlz4 to replace the current file, sessionstore.jsonlz4 is only present when Firefox is closed.

cor-el said

You can possibly make the sessionstore-backups folder read-only. You will normally find these files in the sessionstore-backups folder:
  • previous.jsonlz4 (cleanBackup: copy of sessionstore.jsonlz4 from previous session that was loaded successfully)
  • recovery.jsonlz4 (latest version of sessionstore.jsonlz4 written during runtime)
  • recovery.baklz4 (previous version of sessionstore.jsonlz4 written during runtime)
  • upgrade.jsonlz4-<build_id> (backups created during a Firefox update)
You can copy a file with Firefox closed from the sessionstore-backups folder to the main profile folder and rename the file to sessionstore.jsonlz4 to replace the current file, sessionstore.jsonlz4 is only present when Firefox is closed.

Thank you again, very much! This is a very promising possibility, and I will work on it during my spare time over the next few days and then report back here with my findings.

I am very upset with the Mozilla people for forcing us to go to such lengths simply in order to be able to always launch a fresh invocation of Firefox upon startup, if we so choose.

Yes, of course I know that the vast majority of Firefox users don't mind being forced in this way, but at least Mozilla should provide an *option* (perhaps in "about:config") so that the small minority of us who don't want this startup behavior to be shoved down our throats can *optionally* disable it.

But no.

Thank you, Mozilla, for being so awful and condescendingly paternaiistic to the Firefox user base.

Mametraha fanontaniana

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.