I've got a login system for a website, I'm starting a PHP session server side and creating a cookie in PHP which is used to revive the PHP session when I come back later on.
I'm trying to reuse my code as the back end of an iOS application, but I'm having a hard time understanding just how it's working.
I've set up the following cookie manager, as I understand this should send cookies with my requests.
NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage];
[cookieStorage setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];
I don't need to set any cookies from the iPhone, I just need to make sure that my requests to my php files let those scripts access the cookies.
Am I missing anything ?