Search code examples
objective-ccocoa-touchios5cookiesmobile-safari

How to programmatically remove cookies from iOS Safari?


IS it possible to programmatically remove the Safari cookies from an iOS device?

I don't care if this will get me kicked out of the AppStore, as it will never be submitted.


Solution

  • I've found something for you here:

    [[NSHTTPCookieStorage sharedHTTPCookieStorage] deleteCookie:];
    

    And you can also see something about that here.