Apple Event: May 7th at 7 am PT

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

iOS 10.3 Safari cookies won't delete

Is anyone having any issues with cookies in 10.3 Safari? Cookies don't seem to delete when I try to remove them using all the delete methods. Additionally, when I block cookies, cookies still get stored.


May be cookies settings have changed and I need to change something. Does anyone know?

iPhone 6s

Posted on Mar 30, 2017 4:40 PM

Reply
Question marked as Best reply

Posted on Apr 13, 2017 7:54 AM

The inability to delete certain cookies appears to be a bug in Safari and we all hope Apple is on this.


You will see in my threads that I found some persistent cookies--that previously would not delete--can be removed by visiting the site of the persistent cookie, go to Settings | Safari | Advanced | Website Data and manually remove the cookie. This only seems to work while Safari is still on that site. Additionally, while Safari is set to block cookies [ Settings | Safari | Block Cookies | Always Block ], 0 bytes cookies still get stored in Website Data.


I've learned more through additional trials:

  • A google.com persistent cookie will not remove using the method noted above, all other google tracking cookies do remove
  • 0 bytes cookies return data to web sites in that domain; I tested with a simple .cgi page and was able to return that the cookie exists, it just has no data
  • Resets [ Settings | General | Reset ] do not remove persistent cookies
202 replies

Apr 10, 2017 10:51 AM in response to DontFailMeApple

None of the methods suggested by Apple resolve this issue. The problem is that the cookies are saved in a locked state and will persist forever. I have used the SQLite command interpreter to inspect the backup files on my Mac and every cookie which cannot be deleted is stored in one of the tables. After using the "Erase All Content and Settings" on my iPad yesterday, followed by restoring from a backup, each and every one of the cookies was restored. An additional "bonus" behavior, once which results in apps occupying a specific row and column on the home screen being launched automatically after power up, was also restored; the bits responsible for this errant behavior are also being stored in the backup. Groovy.


My guess is that Apple has changed the behavior of persistent cookies without notifying developers; cookies that were once removable are now permanent.

Apr 11, 2017 12:48 AM in response to macprolar

I had the same problem with cookie databases (on OS X), but there is a way to remove them (use at your own risk, I assume you are a Unix/Linux user). Using a terminal window, cd to ~/Library/Safari/Databases. Remove what you do not want there.


It worked for me. This is certainly a new Safari bug, I have never seen Safari not be able to remove all cookies after a pass or two...

Apr 11, 2017 10:18 AM in response to axelcat

Thanks. I am reluctant to nuke anything there since I don't have any information related to the directory and database stucture used by Apple for these iPad and iPhone backups. I failed to specify earlier that the problems I am having are with iOS, not mac OS. The iOS 10.3.1 update caused this problem for me and my wife as well.


Having the skills is one thing, but reverse engineering Apple's backup structure for iOS devices is another. It is distributed among more than 100 subdirectories, each having one or more SQLite tables; the tables are so normalized that it is difficult to know which records to delete. I can't locate the top-level schema I would use to map everything.


Thanks

Apr 11, 2017 11:40 AM in response to macprolar

I saw this problem as well on my iPhone. Go into settings, then select Safari. Near the bottom I selected Clear History and Website Data. This then greyed out, but when I selected Advanced, then Website Data, I could still see data left by the original Clear. This is a bug (or a very interesting feature). I was able to click Edit however, and delete the individual databases.


Good Luck!

Apr 12, 2017 5:41 AM in response to axelcat

I have the same problem in iOS 10.3.1. Going into edit (Safari>Advanced>Website Settings>Edit) and manually deleting each does not solve the problem. Yes, they appear to go away after doing this. But, come back to to this Advanced>Website Settings page a second later and they are all still there.

Apr 14, 2017 3:18 PM in response to axelcat

Well, this is happening here, too. Not only on my iPhone SE with iOS 10.3.1 and BlockBear content blocker active, but also on my MacBook Pro, which runs El Capitan, with the latest Safari update (10.1 (11603.1.30.0.34)) and uBlock extension active. I'm used to manually remove cookies after a browsing session, and I've noticed a cookie left by a major Brazilian web portal, uol.com.br.


In iOS, it always shows something left by uol.com.br, although it has a 0 byte size information, even after deleting it, removing all data, etc...


In El Capitan, it shows uol.com.br as "database". When I remove it, Safari options says all is clean. But as soon as I click the "Manage Website Data" button again, there it is, as a zombie that refuses to die...


I'm thinking about leaving a feedback to Apple, since this seems to be a bug.

Apr 15, 2017 6:20 PM in response to Gaz1972

Thanks for the response. Unfortunately, as I stated previously, the cookies are stored in the SQLite files generated by the iTunes backup process; I located the cookies in the tables stored there and, as expected, the cookies were restored when I erased all data and subsequently restored my iPad. The same is true with my iPhone.


iTunes is not a solution, it simply restores the problem. It also restores the problem I have mentioned before in which apps located at a certain row and column on the home screeb launch automatically upon power-up. This problem was ocurring on mey previous iPad and when I restored from a backup to migrate to my new iPad Pro, the behavior migrated as well. There is a system setting out of reach that is causing this. I always close all apps prior to shutting down and use no third party launchers, etc... just pure Apple.


So, once again, iTunes backups are not the solution; misconfigured data is saved and misconfigured data is restored.

Apr 16, 2017 12:53 AM in response to macprolar

I will check this out daily to see if the Apple site engineers establish a work around or a fix and will keep you posted as this problem appears to becoming more frequent fromcustomers and it merely has to be esculated with no current solution.


I would envisage that this will only be resolved in a form of a future IOS software update.

Apr 16, 2017 5:46 AM in response to Gaz1972

OK so it's not just me then, tried all the advice and still no joy everything is still there? The worst one is ebay won't go away so hopefully this isn't a back door to my account I'm having to check it all the time to make sure no one has hacked it, come on apple for gods sake what happened to you? We used to be able to rely on iOS but now???

Apr 18, 2017 1:29 AM in response to DontFailMeApple

Great news! You are not alone. This is a cookie that cannot be removed unless Apple makes it possible. Don't waste your time as I did by following extreme steps to 'erase all content and settings.' Once you restore from iCloud backup, the cookie will be there. In fact, you could set up as a new device, abandoning your backup and within a few days, the little bugger will reappear, likely with a different title. It's not specific to your device. It is about IOS 10.3. Hopefully Apple will chime in soon with more information or a fix. Take care.

Apr 18, 2017 5:11 AM in response to davcol

OK thanks for that, I'd already tried the reset thing and that didn't work either so glad to know the restore isn't worth trying, seriously don't know what's going on with apple these days? Maybe a change of manufacturer is on the cards coz they only seem interested in money these days, too many problems not enough fixes

Apr 18, 2017 9:20 PM in response to GBH

I see this did not work for you, but it continues to work for me on iOS 10.3.1. Safari must be closed however to prevent possible reloads of cookies. Even hours after I have deleted the individual databases, the advanced menu shows Website Data is 0 bytes if Safari is closed out from the multitasking window before I use edit to remove the databases.


I see the same behavior on OS X (where I must go into the Library/Safari/Databases directory and delete everything to remove the databases. If Safari is still open, it can repopulate the databases, but if it is not, they will not come back (until you browse new windows and get new databases...).


Good Luck, I hope Apple fixes this bug (or evil feature) soon.

iOS 10.3 Safari cookies won't delete

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