firefox disable session restore

User Help for Mozilla Firefox
Post Reply
COKEDUDE
Posts: 194
Joined: December 4th, 2005, 5:43 pm

firefox disable session restore

Post by COKEDUDE »

Somehow I screwed up my session restore settings. Now literally every time I restart firefox it restores the previous session. How do I stop this?

I set this to false.

Code: Select all

browser.sessionstore.resume_from_crash
User avatar
BobbyPhoenix
Posts: 280
Joined: April 24th, 2014, 5:58 am

Re: firefox disable session restore

Post by BobbyPhoenix »

May be simple, but did you check in settings under General -> Startup? Make sure the box is unchecked for "Open previous windows and tabs".

EDIT: I just noticed you're on an older version, so I don't know if the setting is exactly the same, but I think older versions still had it somewhere.
Do, or do not. There is no try.
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: firefox disable session restore

Post by therube »

browser.sessionstore.resume_from_crash
Is not likely the Pref you want.

The GUI method, mentioned above, should accomplish what you want.
(And looks to change the Pref, browser.sessionstore.resume_from_crash [which is not a boolean].)
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
dickvl
Posts: 54146
Joined: July 18th, 2005, 3:25 am

Re: firefox disable session restore

Post by dickvl »

Note that with Firefox 90.0 you are far behind on updates (current is 100.0) according to the user agent.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0

Maybe use "File -> Exit" to close Firefox if you currently use the close X on the Title bar to make sure that Firefox closes properly.
COKEDUDE
Posts: 194
Joined: December 4th, 2005, 5:43 pm

Re: firefox disable session restore

Post by COKEDUDE »

BobbyPhoenix wrote:May be simple, but did you check in settings under General -> Startup? Make sure the box is unchecked for "Open previous windows and tabs".

EDIT: I just noticed you're on an older version, so I don't know if the setting is exactly the same, but I think older versions still had it somewhere.
It is unchecked.
therube wrote:
browser.sessionstore.resume_from_crash
Is not likely the Pref you want.

The GUI method, mentioned above, should accomplish what you want.
(And looks to change the Pref, browser.sessionstore.resume_from_crash [which is not a boolean].)
Why does the mozillazine page say true false then?

Code: Select all

Possible values and their effects
True

Restore the previous session when the browser starts after a crash. (Default)
False

Do not restore the previous session. 
http://kb.mozillazine.org/Browser.sessi ... from_crash
dickvl wrote:Note that with Firefox 90.0 you are far behind on updates (current is 100.0) according to the user agent.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0

Maybe use "File -> Exit" to close Firefox if you currently use the close X on the Title bar to make sure that Firefox closes properly.
I have updated. Certain work sites require the old version of Firefox. I use the User-Agent Switcher and Manager to switch as needed.

https://addons.mozilla.org/en-US/firefo ... -switcher/
User avatar
dickvl
Posts: 54146
Joined: July 18th, 2005, 3:25 am

Re: firefox disable session restore

Post by dickvl »

Note that Firefox 100 comes with the network.http.useragent.forceVersion pref to set the user agent to a specific Firefox version, so you may no longer need an extension.
https://support.mozilla.org/en-US/kb/di ... irefox-100
User avatar
therube
Posts: 21703
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: firefox disable session restore

Post by therube »

That link doesn't say, but is that then supposed to spoof the UA, i.e., "globally", to all websites, like what general.useragent.override would have done (does ?)?

As in, should https://www.whatismybrowser.com/detect/ ... ser-agent/ say 99 or 100?

(As it is, set to 99, in FF 100 beta, at least, whatismybrowser says I'm on 100.)
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
dickvl
Posts: 54146
Joined: July 18th, 2005, 3:25 am

Re: firefox disable session restore

Post by dickvl »

The version number you enter as the pref value can be any version number (0 is the current version) and is appended with ".0" to set the user agent.
https://searchfox.org/mozilla-release/s ... p#line-280
Post Reply