title: Android App Strategy for keeping track of a login session
body: <p>I have some PHP script that logs in and returns a JSON array with a session ID if the login was successful.</p>
  
  <p>In my app, I want to login at the front page and continue out through the app being logged in. I created a singleton class that holds a session ID (along with a few other fields) received from the JSON from the PHP page. This singleton object's field "session_id" gets checked depending on what the user does. </p>
  
  <p>If the user wants to log out, then the session_id just gets set to null thus logging out. </p>
  
  <p>I also use the HttpURLConnection library to POST the username/password when logging in.</p>
  
  <p>Is this a decent enough approach for handling this situation? </p>