Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

authentication in iOS - can you use cookies/session?

I'd like to serve info from PHP to an iPhone app based on what user's logged in. Can I go the session/cookie route of authenticating requests from the app or do I have to use some sort of token authentication? Basically, can php leave cookies (same as on a browser) if i'm calling the services from iPhone app?

like image 447
nuway Avatar asked Oct 08 '22 20:10

nuway


1 Answers

Yes - the NSHTTP methods handle cookies behind the scenes.

And you can configure behavior as well with NSHTTPCookieStorage.

like image 144
QED Avatar answered Oct 10 '22 09:10

QED