FlickrKit
FlickrKit copied to clipboard
Logout does nothing
For some reason, after a [[FlickrKit sharedFlickrKit] logout] doesn't log all the way out. On the next access, I get to the Flickr authorize screen, but not all the way back to the screen where you enter an email and password.
I'll have a look into this. It's more likely a cookie on Flickr's web site and the UIWebView rather than something in FlickrKit, as I've experienced this with ObjectiveFlickr too.
It seems to work after clearing the cookies Here is the method i used
-(void)deleteFlickrCookies
{
NSHTTPCookieStorage* cookies = [NSHTTPCookieStorage sharedHTTPCookieStorage];
NSArray *allCookies = [cookies cookies];
for(NSHTTPCookie *cookie in allCookies) {
if([[cookie domain] rangeOfString:@"flickr.com"].location != NSNotFound) {
[cookies deleteCookie:cookie];
}
}
}