Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to get Cookies from UIWebview

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 3.96k
    Comment on it

    The following code will get the cookies form the sever and will store in the array. Get the appropriate cookie from the array by its name.

    - (void)webViewDidFinishLoad:(UIWebView *)webView {
    
        NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
        NSArray *cookiesArray = [storage cookies];
        NSMutableArray *array2 = [NSMutableArray new];
        BOOL isFound = NO;
        for (NSHTTPCookie *cookie in cookiesArray) {
    
            if ([[cookie name] isEqualToString:@"FedAuth"]) {
    
    
    }
    }
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: