Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

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 do I prevent Firefox from re-opening my last session upon reboot

  • 1 tontu
  • 0 am na jafe-jafe bii
  • 10 views
  • i mujjee tontu mooy cor-el

more options

How do I prevent Firefox from re-opening my last session upon reboot, for example after my laptop dies or I shutdown without closing browser windows? I never never ever want Firefox to restore pages at any time for any reason.

Background: I use firefox for work, and I keep 7 separate firefox windows open to the sites I use to do my job. Because it's a pain opening them every time, I created a shell script (I'm using linux mint 21.1 by the way) to do it. I just double click a desktop icon to launch my shell script and all of my windows open in the order I like them to be in.

Unfortunately, if my laptop battery dies or if I just am in a hurry and I log out without closing everything, then the next time I log in and launch my script, it opens my first firefox window, which then decides to open ALL 7 of the windows that were killed when my laptop shut down, and then my script opens the remaining 6 windows it is supposed to open, for a total of 14 browser windows now open, and I have to close half of them.

What I tried: I googled around and the only thing I could find was the browser.sessionstore.resume_session_once settting, which appears to have no effect whatsoever when I restart (my test was to set this flag to false, open 7 browser windows, restart my machine without closing the browser windows, and then launch my script and the result was 14 browsers open instead of 7).

Version: I'm using Mozilla Firefox for Linux Mint (mint-001 - 1.0) with a Firefox version number of 111.0.

How do I prevent Firefox from re-opening my last session upon reboot, for example after my laptop dies or I shutdown without closing browser windows? I never never ever want Firefox to restore pages at any time for any reason. Background: I use firefox for work, and I keep 7 separate firefox windows open to the sites I use to do my job. Because it's a pain opening them every time, I created a shell script (I'm using linux mint 21.1 by the way) to do it. I just double click a desktop icon to launch my shell script and all of my windows open in the order I like them to be in. Unfortunately, if my laptop battery dies or if I just am in a hurry and I log out without closing everything, then the next time I log in and launch my script, it opens my first firefox window, which then decides to open ALL 7 of the windows that were killed when my laptop shut down, and then my script opens the remaining 6 windows it is supposed to open, for a total of 14 browser windows now open, and I have to close half of them. What I tried: I googled around and the only thing I could find was the browser.sessionstore.resume_session_once settting, which appears to have no effect whatsoever when I restart (my test was to set this flag to false, open 7 browser windows, restart my machine without closing the browser windows, and then launch my script and the result was 14 browsers open instead of 7). Version: I'm using Mozilla Firefox for Linux Mint (mint-001 - 1.0) with a Firefox version number of 111.0.

All Replies (1)

more options

You can check this pref on the about:config page.

  • about:config => browser.sessionstore.resuming_after_os_restart = false