Android c# App Login Best Practice -


i'm making android app in c#, , starts login page. anytime app closed, user has log in again.

what's best practice auto-login, storing credentials somewhere , retrieving them? (if best way)

thanks

riccardo

you can follow steps

  1. after successful login, save credentials in sqlite db or other database using.
  2. on logout, clear these credentials using deleteall<>() method.
  3. at startup/launch screen, first check if credentials present. if yes, show user next screen else display login screen.
  4. if don't wish delete credentials, use boolean flag in user object , mark accordingly.
  5. during password change, make sure replace old credentials new one, else user can login app using his/her old credentials.

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -