I have a username, password, and checkbox (next to the text ‘remember me’).
How do I to implement a remember me function to keep username and password data??
Any help would be appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can save values associated with your application using Preferences.
Define some statics to store the preference file name and the keys you’re going to use:
You’d then save the username and password as follows:
So you would retrieve them like this:
Alternatively, if you don’t want to name a preferences file you can just use the default: