Logging into a website from android
<p>Basically I have a form in my android app that lets the user enter his/her username and password and then this is POSTED to a very simple login page made in PHP online. I then need to access a second pae which pulls down data from an xml file - in order to access this page the user must be logged in. The xml page that the user sees is dependent of their username.</p>

<p>On my login page I have </p>

<pre><code>session_start();
session_register("username");
</code></pre>

<p>At the beginning of each page that checks login I have</p>

<pre><code>&lt;?php
session_start();
?&gt;
</code></pre>

<p>and to check if the user is logged in I use a simple if statement</p>

<pre><code>if(!session_is_registered("username")){?&gt; 
display whatever

else bla
</code></pre>

<p>How can I make this work in my android application? I am unable to go to the xml page after I have logged in because it does not recognise me as being logged in.</p>
