LuckyLuke
LuckyLuke

Reputation: 49077

Deleting cookies in iOS application

Do I read the NSHTTPCookieStorage documentation right that you can't delete other cookies than on those belonging to your own app? So if you loop through all the cookies you get from that object you only get those cookies associated with your application such as those retrieved in a webview?

iOS Note: Cookies are not shared among applications in iOS.

Upvotes: 0

Views: 764

Answers (1)

QED
QED

Reputation: 9913

Yes you read it correctly. The previous line in the doc (These cookies are shared among all applications and are kept in sync cross-process) is there for OS X. Cookie sharing among apps would be an enormous security violation. And though I haven't tried it, I'm confident that yes, enumerating cookies on iOS just gives you those stored for your app.

Upvotes: 1

Related Questions