Perform login and logout in android
<p>In my application, after the user registers or logs in, to stay in the session until that person logs out. I found that some people are talking about using sharedPreferences for this,  but I didn't really know how to use it to accomplish this!</p>

<p>How can I use sharedPreferences in order to manage login/logout?</p>
