How to save user login credentials using PhoneGap API?

user842122 picture user842122 · Feb 9, 2012 · Viewed 16.5k times · Source

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

Answer

Devgeeks picture Devgeeks · Feb 10, 2012

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