//清除cookies
    NSHTTPCookie *cookie;
    NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
    for (cookie in [storage cookies])
    {
        [storage deleteCookie:cookie];
    }
 
    //清除UIWebView的缓存
    [[NSURLCache sharedURLCache] removeAllCachedResponses];

posted on 2014-06-19 11:19  М80メ  阅读(213)  评论(0编辑  收藏  举报