Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logout does nothing #5

Open
pizzafilms opened this issue Aug 20, 2013 · 2 comments
Open

Logout does nothing #5

pizzafilms opened this issue Aug 20, 2013 · 2 comments

Comments

@pizzafilms
Copy link

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.

@devedup
Copy link
Owner

devedup commented Aug 25, 2013

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.

@kinwahlai
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants