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 Top-ranking reply

Posted on Dec 27, 2017 12:59 PM

I've had the same issue with being unable to delete a number of "0 Bytes" cookies on my iPad for a while, but recently an eBay.co.uk cookie of 508KB size began to exhibit the same behaviour - at which point I "snapped", enough is enough! I found a solution, however it's a little long-winded and requires a Mac:


  1. Connect the iOS device to a Mac and create a backup using iTunes
  2. Open the backup using an explorer/editor tool such as iBackupBot (I was a little dubious about using this at first, but it was signed by a registered developer and did not require installation nor did it ask for a password input at any stage, so pretty safe)
  3. Navigate to the folder "User App Files > com.apple.mobilesafari > Library > Webkit > Website Data"
  4. Delete all files and folders in the enclosed IndexedDB folder - this is where the 508KB of eBay data seemed to be
  5. Delete all files and folders in the enclosed WebSQL folder - where all the other "0 Bytes" cookies are stored. I was amazed there were even cookies in here which didn't show up in the Website Data view in Settings. Mine had a whole trove of cookies from argos.co.uk, ebay.co.uk, and uk.farnell.com amongst others.
  6. Restore the backup to your iOS device using iTunes


This was sucessful for me on both my iPad Pro and iPhone SE - both on iOS 10.3.3. I can't confirm if it will work for iOS 11 devices, but from what I've read many people have found the cookie problem to be fixed in 11.1.2.

202 replies

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 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.

Apr 19, 2017 2:10 AM in response to axelcat

I Always close safari first then clear all data etc then advanced to clear all data but still they remain? As it seems to be a problem with multiple devices and users I would hope apple survey this community and pick up on it, also how many reports does it take before they do something about it? This isn't just about battery drain or something that you can live with, data from these sites could be used to get into people's accounts etc not good apple you should be on this straight away

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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 Account.