搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How do I disable Restore Previous Session?

  • 3 回覆
  • 4 有這個問題
  • 15906 次檢視
  • 最近回覆由 Dsell87

more options

Hello, my parents just bought a new computer and I am helping them to set it up. Right now their biggest concern is that when Firefox closes and is reopened, the session from last time is automatically restored. They are worried about privacy concerns in case they're logged in shopping or on their email.

I am using Windows 8.1 and Firefox 33.0.2

Firefox is currently set in the options to "Show my homepage" when it starts. I found this link https://support.mozilla.org/en-US/questions/975670 and followed the directions there, including setting browser.sessionstore.resume_from_crash. in the config files to false, but I've still had no luck. A search shows that I do not have a "user.js" file in the Firefox profile that might be causing the problem, so that solution isn't working for me.

I also used this page http://kb.mozillazine.org/Browser.sessionstore.enabled to check my "browser.startup.page" and it is currently set to 1 "Show my Homepage."

I'm out of ideas and would appreciate any help anyone could offer.

Thanks!

被選擇的解決方法

You can check if you have a user.js file in the Firefox profile folder that sets the browser.sessionstore.resume_session_once pref to true.

Your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts.

The user.js file is only present if you or other software has created this file and normally it wouldn't be there. You can check its content with a plain text editor (right-click: Open with) if you didn't create this file yourself.

The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session. You can delete the user.js file.

從原來的回覆中察看解決方案 👍 1

所有回覆 (3)

more options

Hello,

Are you looking to clear the history each time you close Firefox (effectively removing your previous session)? If so, then you can change your settings in:

  • Tools (or New Fx Menu) > Options > Privacy

And change the History to "Never remember history", or "Use custom settings for history" and check "Clear history when Firefox closes" and then click "Settings". If you are worried about tracking cookies monitoring your shopping purchases, that is something you would want to clear every time.

Please note that they can also manually clear their cookies and history by going to:

  • History (or New Fx Menu > History) > Clear recent history

由 CoryMH 於 修改

more options

選擇的解決方法

You can check if you have a user.js file in the Firefox profile folder that sets the browser.sessionstore.resume_session_once pref to true.

Your System Details list shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts.

The user.js file is only present if you or other software has created this file and normally it wouldn't be there. You can check its content with a plain text editor (right-click: Open with) if you didn't create this file yourself.

The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session. You can delete the user.js file.

more options

Hi guys, thanks for the response. Cor-el I was able to find the user file and deleted it and that did the trick. Previously I did a search for "user.js" which didn't turn anything up. When I opened the "user" file in the profile it had about 5 lines setting the session restore to true, so that was the problem.

Thanks again!