Skip to content

Instantly share code, notes, and snippets.

@jsclayton
Created May 25, 2012 17:04
Show Gist options
  • Save jsclayton/2789221 to your computer and use it in GitHub Desktop.
Save jsclayton/2789221 to your computer and use it in GitHub Desktop.
Remove cheezburger cookies
- (void)logout {
NSHTTPCookieStorage *cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage];
NSArray *cheezburgerCookies = [cookies cookiesForURL:[NSURL URLWithString:@"http://cheezburger.com"]];
for (NSHTTPCookie *cookie in cheezburgerCookies) {
[cookies deleteCookie:cookie];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment