Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Safari Cookies not deleting!

Is there a way to prevent safari from storing cookies from your favorite webpages. I go to remove website data/cookies and the same 14 keep coming back and they all are from favorites i have saved.


Found out thru reading that safari keeps cookies from your favorites so the page can load faster. Is there a way to get rid of them totally.


This is on my MacPro 2011. My MacBook 2015 doesent have this issues and is able to let me delete all the cookies. So wondering why i can do on one but not the other.


Both run Sierra also.

Mac Pro, macOS Sierra (10.12)

Posted on Oct 11, 2016 7:05 PM

Reply
11 replies

Jul 30, 2017 6:16 PM in response to Krazirob

Using Safari's "Manage Website Data..." followed by "Remove All" does not remove databases created by websites. They are SQLite files and are stored in:


~/Library/Safari/Databases


To delete databases created by websites, navigate to that folder and drag its contents to the Trash.


Those databases will return upon loading the websites that create them, for whatever purpose that may entail. It can be assumed they are used to save login credentials and browsing history specific for that website, but other uses are certainly possible and are easily implemented.


macOS draws heavily from its iOS counterpart in that it makes extensive use of sqlite databases. That ability is incorporated in Webkit that Safari uses, and its use is not limited to Safari. SQLite can be used to create very compact and efficient database storage for a variety of purposes. Contacts and Mail also uses them. For more information refer to http://www.sqlite.org/.


Cookies and website data will be populated from sources other than the obvious open pages and tabs. They include Top Sites, Quick Website Searches, Search Engine Suggestions, Top Hits and others.


Also, when you click "Remove All" it will take some time to delete all of them. The window will repopulate before it's finished removing everything, so let it take a moment or two to finish.


Safari for Mac: Search preferences in Safari

Sep 2, 2017 9:33 AM in response to Stpetey

Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J. When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Select Library.


As the 2nd article points out, they are capable of regenerating after deletion with files that go to many parts of the system.



Safari/Browsers – can’t delete cookies



Evercookie



The myth of the dangerous cookie



Quit Safari.


In Finder go to Go menu and then Go to Folder.


Copy and paste this ~/Library/Safari/Databases.


Delete the contents of the folder.


Launch Safari again and check if all is ok.


If that doesn’t work, copy and paste this ~/Library/Safari/LocalStorage.


Delete the contents of the folder.


Then go to Safari/History and delete any entries for the related websites.


Test.

Oct 11, 2016 9:42 PM in response to Krazirob

Clear your browsing history and cookies at any time by choosing History > Clear History, or change your cookie preferences in the Privacy pane of Safari preferences.


If you don’t want Safari to save your browsing history, use a Private Browsing window—just choose File > New Private Window. When you use a Private Browsing window, Safari also asks websites not to track you. Learn more.

Oct 12, 2016 5:37 PM in response to Krazirob

You cannot stop Safari from visiting your favourite (aka frequently visited) sites all by itself and re-acquiring the cookies. It's a feature 🙂


Safari also uses iCloud to keep your favorite websites the same on all your Mac computers and iOS devices that have Safari turned on in iCloud preferences.


Your only option is to Use Private Browsing windows in Safari (see that link for details; you won't acquire persistent cookies).


There may be third party addons that do what you want, though I don't know of any off hand.

Safari Cookies not deleting!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.