As it is known, AFHTTPSessionManager in AFNetworking 2.0+ supports cookies.
But is it possible for AFHTTPRequestOperationManager in AFNetworking 2.0+ to support cookies?
As it is known, AFHTTPSessionManager in AFNetworking 2.0+ supports cookies.
But is it possible for AFHTTPRequestOperationManager in AFNetworking 2.0+ to support cookies?
Yes. AFNetworking uses the foundation URL Loading system, which handles cookies out of the box.
You can configure NSMutableURLRequest's
setHTTPShouldHandleCookies
and useNSHTTPCookieStorage
to store them.In Objective-C:
In Swift: