I found the problem.
This is the problem. Apple docs:
Code:
NSHTTPCookieAcceptPolicyAlways
Accept all cookies. This is the default cookie accept policy.
Available in iOS 2.0 and later.
Declared in NSHTTPCookieStorage.h.
But IT'S NOT the default accept policy! It was blocking the cookies, and with this code I fix it:
Code:
NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage
sharedHTTPCookieStorage];
[cookieStorage setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];