Search code examples
iphonecordovasencha-touchautologin

How to save user login credentials using PhoneGap API?


I want to save user login credential in my iPhone app, The app is build using PhoneGap and SenchaTouch API's. If the user login through the App, I want to save his userId/Password unless and until he specifically logout. This will save him from login process every time he uses the app and add to user experience.

Any kind of help will be appreciated.

Thanks


Solution

  • There is always localStorage. It is a simple key / value persistence that will do exactly what you are looking for.

    http://paperkilledrock.com/2010/05/html5-localstorage-part-one/

    edit: The above link died: http://diveintohtml5.info/storage.html