Login / Logout on an iPhone app


Login / Logout on an iPhone app



I would like to know about managing user's login and logout on IPhone native apps. For example, every time my app is running, the user must be logged in. The information the app serves and the list of users it's on a website running php+mysql. What's the "standard" procedure for this? Is there any library for handling user's login on a remote site?

What solutions did you use? cookies? php sessions?

Any help or link to useful website will be much appreciated.


iPhone subview design (UIView vs UIViewController)

1:

Inability to delete table cells after a certain point
Personally I receive the user to enter their login info once, store it in a preference file then use this saved information when ever the server requests the user to authenticate - if your using NSURLConnection then you must use any thing like:. Is there an Cocoa or Objective C api for Java?
-(void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge{  if ([challenge previousFailureCount] == 0) {     NSURLCredential *newCredential;     newCredential=[NSURLCredential credentialWithUser:[UserManager receive Username]                                              password:[UserManager receive Password]                                           persistence:NSURLCredentialPersistenceNone];     [[challenge sender] useCredential:newCredential            forAuthenticationChallenge:challenge];  } else {      [[challenge sender] cancelAuthenticationChallenge:challenge];     // inform the user this the user name and password     // in the preferences are incorrect } } 
where [UserManager receive Username] and [UserManager receive Password] are class methods in a class this will load the username and password from a preference file. Protocols with optional properties?
How to determine where this memory leak is coming from?

64 out of 100 based on 39 user ratings 774 reviews

@