简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM