Authentication in iOS - can you use cookies / session?

I would like to serve information from PHP to an iPhone application based on the fact that the user is logged in. Can I go to the session / cookie request authentication file from the application or do I need to use some authentication with a token? Basically, can php leave cookies (the same as in the browser) if I call services from the iPhone app?

+5
source share
2 answers

Yes - NSHTTP methods handle cookies behind the scenes.

And you can also customize the behavior of NSHTTPCookieStorage .

+3
source

NSURLRequest . , NSHTTPCookie , .

SO <

0

All Articles