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