为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox not keeping restored sessions up to date

  • 5 个回答
  • 1 人有此问题
  • 5 次查看
  • 最后回复者为 HansE

more options

Whenever firefox is closed by whatever means, when I reopen it and tell it to restore sessions, I'm seeing tabs and windows from hours ago or sometimes even days! Needless to say this defeats the entire purpose of the restore session function and is getting very annoying now.

Whenever firefox is closed by whatever means, when I reopen it and tell it to restore sessions, I'm seeing tabs and windows from hours ago or sometimes even days! Needless to say this defeats the entire purpose of the restore session function and is getting very annoying now.

所有回复 (5)

more options

You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox profile folder that store session data.

Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox profile folder.

Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost and you will have to recreate them (make a note or bookmark them if possible).


Make sure that your security software isn't protecting or restoring js files in the Firefox profile folder.

more options

Deleting the sessionstore files seemed to help for now. I'll see how it goes but for now it's good.

more options

Right so a day later and after closing firefox myself, it decided to bring up a firefox version from a few hours ago. Not as annoying as some of the stunts I've gotten but still.

My virus-scan and firewall are not doing anything to the js files in my profile folder.

Something I've noted is that every now and again, the sessionstore.js file refuses to back up; I check the last modified date and it's hours ago. I know that the interval value in about:config is still at its default 15000 value so I'm not sure why it decides to randomly misbehave.

由Darkoda于修改

more options

You can try this startup setting:

  • Tools > Options > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

Start Firefox in Safe Mode to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).

  • Do NOT click the Reset button on the Safe Mode start window.
more options

RE: Ancient Tabs restoring in secondary New Window

I had a similar yet not identical issue. For my Firefox v26, I had always had it set to auto Restore The Last Tab(s), and any new windows opened after that first window would open a single blank Tab. Recently a series of tabs from a restore long ago began arriving on the first window. Removing the session files described above helped clean that up. However, if I then used the File menu to Open A New Window, that second window opened all those ancient restored tabs. I also tried some about:config edits described in other articles without success, and then changed those values back once tested.

The fix for this particular situation was to edit the General tab in the Firefox Options (Tools menu > Options > General). I changed the Home Page entry to the Firefox default and I changed the start-up behavior ("When Firefox Starts") to not restore the last tabs, but just open the home page. Once everything was opening normally, with a plain homepage on the first window and the second window opening a blank tab, I then set my start-up back to restoring old tabs ("Show my windows and tabs from last time") and now it behaves as I wanted.

I hope that helps someone else. FYI