Yet another way of looking at it:
Looking for any examples that would allow me to get the Cookies set on the server from a NSURLRequest.
Basically, I need to have a user logged in, so they can get various data related to their account.
So like any other web based auth system, the user would submit their name/pass and, if valid, a cookie would be set (session or otherwise) that tells the system the user is indeed logged in.
If this were PHP it would be something like:
if(!$_SESSION['loggedInToken']){
header('Location: http://www.example.com/login');
}
or
$_COOKIE could be used..
in any case, the idea is the same, I want the iPhone to send the user credentials to the server for authentication, and I want the iPhone to be able to get the Cookie that is set, as well as send the Cookie when it makes additional requests to the server.
Can anyone point me in the right direction. I am positive I need some combination of :
NSURLRequest/NSURLMutableRequest
NSURLConnection
NSHTTPCookie
The Docs on NSHTTPCookie, to me anyway, seem unclear.