我有一个UIWebView,不想让它存储任何cookie,所以在webview加载之前,我执行以下操作:
NSArray* cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies];
for (NSHTTPCookie *cookie in cookies) {
[[NSHTTPCookieStorage sharedHTTPCookieStorage] deleteCookie:cookie];
}
检查cookie计数为0,因此它们都被删除。但是当我访问stackoverflow时,它仍然识别我的Google帐户并登录。这是怎么发生的?我以为它与cookie有关?