Recently, I had to hit a stateful internal API and needed to store an user authentication cookie.
I couldn’t figure out how to do this in the AFNetworking documentation, but I found a simple answer in this stackoverflow post.
For me, I just did [self saveCookies] after successful user authentication and then [self loadCookies] when I needed to perform GET and POST operations. Hope this helps!
You must be logged in to post a comment.
Receive notifications of new posts by email.
2015 © Objective Li Labs LLC