搜索 | 用户支持

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

详细了解

I want firefox not to ask for restore session when i reopen the browser.

  • 4 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

i am automating test cases using UFT , VBscript . scenario is : user is logged into the AUT site , and logged out successfully (even if not logged out ), the browser is closed after testing goal performed . Now, when the browser is relaunched for another test , firefox asks 'do you want to restore the previous session ?'. And the test case fails . How do I configure Firefox for such issue ?

i am automating test cases using UFT , VBscript . scenario is : user is logged into the AUT site , and logged out successfully (even if not logged out ), the browser is closed after testing goal performed . Now, when the browser is relaunched for another test , firefox asks 'do you want to restore the previous session ?'. And the test case fails . How do I configure Firefox for such issue ?

所有回复 (4)

more options

HI, any reason why session restore is coming up ? Is CCleaner being used and it is updated and options are set properl to not wipe out Firefox files which would then think it crashed or some other program that works the same ?

This should only happen if Firefox thinks it crashed during shutdown. Possibly there actually was an incomplete shutdown, or possibly some session files were deleted leaving others behind, making it appear that the shutdown was incomplete.

When Firefox doesn't find sessionstore.jsonlz4 in the expected location and does find other session history files suggesting that shutdown was abnormal, it may assume there was a crash.

  • NOT RECOMMENDED
  1. In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.
  2. In the search box above the list, type or paste sess and pause while the list is filtered
  3. Double-click the browser.sessionstore.resume_from_crash preference to switch the value from true to false

So I suggest after your testing to change it back.

Please let us know if this solved your issue or if need further assistance.

more options

You can delete the sessionstore-backups folder and sessionstore.jsonlz4 when present to prevent Firefox from restoring the previous session.

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

more options

After i delete the mentioned file and Close the browser , the Folder is recreated at the start of the browser and the same issue persists.

more options

You need to delete this folder every time you start Firefox to clear out all sessionstore files. This should make it impossible to restore a previous session. Firefox will create a new sessionstore-backups folder for use during the current session.