What happens to cookies of webview on closing the application?

会有一股神秘感。 提交于 2019-12-04 09:12:15
Jake Vizzoni

You want to use a NSHTTPCookieStorage object to manage the cookies. The short answer to your question is to use NSHTPPCookieStorage which will distribute the shared instance. You can use this instance to get/set cookie information.

Take a look at the Apple documentation for NSHTTPCookieStorage, as well as the following two posts:

Where are an UIWebView's cookies stored?

http://blog.andrewpaulsimmons.com/2008/08/add-set-and-delete-cookies-in-uiwebview.html

These should get you started down the right track.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!