php - Login / Logout on an iPhone app -


I want to know about managing user logins and logout on iPhone country apps. For example, every time my app is running, the user must be logged in. What is the "standard" process for the information given in the app and the list of users visiting the website php + mysql? Is there a library to control user login at the remote site?

Which solution did you use? Cookies? Php sessions?

Any help or links to useful websites will be greatly appreciated.

Personally, I get the user to enter my login information once, it is preferred File, then use that saved information when the server has requested to authenticate the user - if your NSURL is using the connection then you can use something like this:

< Pre> - (zero) connection: (NSURLConnection *) connection was receivation Unauti: (NSURLAuthenticationChallenge *) challenge {if ([last daunting challenge] == 0) {NSURLCredential * newCredential; New credentials = [NSURLCredential credentialWithUser: [UserManager getUsername] Password: [UserManager getPassword] Persistence: NSURLCredentialPersistenceNone]; [[Challenge Sender] Use credentials: new credentials for fundraising challenge: challenge]; } And {[Challenge Sender] Cancel Payment Challenge: Challenge]; // Notify the user that the username and password are incorrect in the preferences}}

where UserManager getUsername] and [UserManager getPassword] In a class there are class methods that will load the username and password from the priority file


Comments

Popular posts from this blog

email - PHP mail error ... failed to open stream : permission denied -

c# - ListView onScroll event -

c - Linux mmap() error -