FlickrKit icon indicating copy to clipboard operation
FlickrKit copied to clipboard

Logout does nothing

Open pizzafilms opened this issue 12 years ago • 2 comments

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.

pizzafilms avatar Aug 20 '13 04:08 pizzafilms

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.

devedup avatar Aug 25 '13 21:08 devedup

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];
        }
    }
}

kinwahlai avatar Oct 18 '13 03:10 kinwahlai