Question

I am new to PhoneGap development. My PhoneGap application has a login page and I need to implement a "Remember Me" option into this login page. If the user has checked the "Remember Me" checkbox after entering username & password, the application should remember the user entered username & password and auto fill the information the next time the user launch the application (i.e. username & password should be persisted even when the application is closed, phone is restarted etc).

What is the best approach to implement this in a PhoneGap application..?

I know I can write the username and password to a file and read it back when app is launched. But I have a feeling that this is not the best way to do this due to various reasons including security.

Thanks in advance.

Was it helpful?

Solution

You can look into using an SQLLite database or LocalStorage, as documented here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top