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

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

  • 4 iimpendulo
  • 1 inayo le ngxaki
  • 1 view
  • Impendulo yokugqibela ngu 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 ?

All Replies (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.