views:

821

answers:

1

I'm writing an iPhone app. This app requires users to login on a remote web server which is using php + mysql. How can the server handle this? Using sessions? Cookies? unique IDs? Any link/code/tutorial on how to do this would be great.

Thanks!

+1  A: 

Unless you want to pass session identifiers or credentials in each request, it makes sense to use NSURLRequest's inbuilt cookie support to either store the entire session, or to just store a session identifier which you then use on the server to lookup the actual session data.

Nathan de Vries