I am a .Net developer and very new to Xcode. I am using WCF for the server side process and send/receive JSON data between iphone app and WCF. I want the native iPhone app to do below:
- Registration and Login view
- Once user click login button, it sends username and password entered in JSON format to my WCF service to authenticate, if login is valid, WCF will return a valid member GUID and a token string
- iPhone app receives the member guid and token, and stores them in a "persistent variable", and I will load new views for authenticated users. So member has access to all functions/views.
- Every time I post data between iphone app and WCF, I need to use that member guid and token from the variable so the WCF service knows which member is requesting data.
- Every time user shutdown or restart iphone, I hope my app can remember the member guid, so they don't have to login again.
- User can click a logout button, and it will clear the variable and return to login view.
I am not sure if this is the correct way of iphone app login process?
I have already done WCF authentication and send back JSON, but now I need to store member GUID, Can someone please point me to the right direction? What should I use to store that information that can be used later on? An example would be great!