How to set cookieAcceptPolicy for ephemeral NSURLSession
问题 I am trying to use ephemeral NSURLSessions to provide separate cookie handling for several tasks within my app. These tasks are not directly bound to a UI. Problem: Whatever I do, the cookieAcceptPolicy of the ephemeral NSHTTPCookieStorage remains NSHTTPCookieAcceptPolicyNever . Here's my code: // use a pure in-memory configuration with its own private cache, cookie, and credential store __block NSURLSessionConfiguration* config = [NSURLSessionConfiguration ephemeralSessionConfiguration]; //