This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

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

History & cookies deleting self upon closing firefox

  • 7 replies
  • 0 have this problem
  • 7 views
  • Last reply by cor-el

more options

Recently i've started having an issue where all of my browser history & cookies gets deleted when i close firefox. I know that is an existing setting but i have that turned off in all the places i can find. This has only started happening recently and the only thing that shows up in my history are my bookmarked tabs- like it shows each bookmarked tab as if i have gone and clicked each tab in my history and literally nothing else. I have been on my pc throughout the day and have searched many things yet upon closing all tabs & windows everything is deleted. I know this sounds like the opposite of an issue but i rely on my history a lot to help me go back to sites & helpful infomation.

Recently i've started having an issue where all of my browser history & cookies gets deleted when i close firefox. I know that is an existing setting but i have that turned off in all the places i can find. This has only started happening recently and the only thing that shows up in my history are my bookmarked tabs- like it shows each bookmarked tab as if i have gone and clicked each tab in my history and literally nothing else. I have been on my pc throughout the day and have searched many things yet upon closing all tabs & windows everything is deleted. I know this sounds like the opposite of an issue but i rely on my history a lot to help me go back to sites & helpful infomation.

All Replies (7)

more options

Two things:

(1) A few versions back, Firefox added a second icon which is a purple mask. This icon starts a private window that can't retain history. Probably you are not using that icon, but if you are, don't use that one for pages you want to keep in history.

(2) The "classic" settings that can clear history can be accessed through the Settings page, Privacy & Security panel. Let's double-check:

If you scroll down to the History section, what settings do you have here?

(A) Default

Firefox will: Remember history

That should keep all history

(B) Automatic private browsing

Either:

  • Firefox will: Never remember history
  • Firefox will: Use custom settings for history + [x] Always use private browsing mode

That will always dump all history

(C) Clearing at shutdown

Firefox will: Use custom settings for history + [x] Clear history when Firefox closes

You need to click the Settings button to the right of Clear history and make sure Firefox isn't clearing any data you want to keep.

Do all of those look okay?

more options

Note that your System Details show that you have the Advanced SystemCare Ultimate software. Advanced SystemCare is known to remove/cleanup quite some data in a browser like Firefox.

There is software like Advanced SystemCare with its Surfing Protection feature that can protect files in the Firefox profile folder against changes. If you have such software then check the settings or uninstall this software.

more options

I've gone over my settings and i had those settings already but i've ticked-unticked-ticked the boxes again so i will see if that works. In regards to advanced systemcare I've checked that too but to no avail.

more options

Just to clarify, you do not want to tick the boxes under (B) Automatic private browsing.

more options

I double checked that when you replied to me but didn't get a chance to respond until now, it was unchecked. Its been a few days now and I'm still having the same problem despite opening and using firefox every day since. In the attached screenshot is my "history" for the past month. The links that've I've used today have black markers, the rest are some of my bookmarks. I'm not sure why my bookmarks keep coming up in my history consistanly, and thats not even all of them. Really not sure whats going on here.

more options

You can make the Most Recent Visit column visible to see then those history visits occurred.

more options

If you use Sync, best is to disconnect Sync temporarily during troubleshooting.

This could be a problem with the places.sqlite and favicons.sqlite files in the Firefox profile folder.

  • use the "Places Database" -> "Verify Integrity" button on the "Help -> More Troubleshooting Information" (about:support) page

If errors are reported with "Verify Integrity", close and restart Firefox or reboot and retry.

If "Verify Integrity" cannot repair places.sqlite, rename/remove all places.sqlite and favicons.sqlite files in the Firefox profile folder with Firefox closed. Firefox will rebuild places.sqlite and restore the bookmarks from the most recent JSON backup in the bookmarkbackups folder.

  • keep a backup copy of places.sqlite in case a new places.sqlite database has to be created
  • you lose the history when a new places.sqlite is created

You may have to restore an older bookmarks backup in the bookmarkbackups folder via the Bookmarks Manager (Library).

See also:

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