title: Yii Website Login through Android AsyncTask
body: <p>I am working on a login module for Our Yii website through Android, I have done and could post the username and password to the login url localhost/telemac/index.php/user/auth and it returns the html code for logged in page. I set a key to make sure that the logged in user is a valid user by writing this line</p>
  
  <pre><code>String ret = response.getStatusLine().getReasonPhrase();
  </code></pre>
  
  <p>which returns the response "OK"and I tried this as well</p>
  
  <pre><code>String ret = response.getStatusLine().getStatusCode(); 
  </code></pre>
  
  <p>which returns 200 as the response code. Even if a wrong user logs in, it returns the same response "OK" and 200 respectively. I spent a lot of time on this. could not get a right solution. Plz help me to fix this</p>