Android: prevent user from coming back to login page after logging in

Posted by user522559 on Stack Overflow See other posts from Stack Overflow or by user522559
Published on 2010-12-28T07:09:00Z Indexed on 2010/12/28 8:53 UTC
Read the original article Hit count: 256

Filed under:
|
|
|

Hi all,

I have a login page in my android app. I want to prevent the user after logging in to come back to the login page. Also, when the user reopens the app, if he has logged in before, I want to go directly to the main page without having to go to the login page.

What the best way of doing that? One idea I thought of is to save the login parameters in a cookie, and then, when the app is reopens, if the cookie contains some login information, I inflate the main page, otherwise, I inflate the login page. Is this the best way of doing it?

Thanks,

© Stack Overflow or respective owner

Related posts about android

Related posts about authentication