I want to store login data but I want that data to be deleted after 60 minutes. What is the proper way to do this?
The app can be closed, stopped, opened in these 60 minutes. I don't want to use an internal database.
Here is my code for accessing SharedPreferences
sharedpreferences = getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE);
SharedPreferences.Editor editor = sharedpreferences.edit();
editor.putString(Username, usernameTxt);
editor.putString(Password, passwordTxt);