Session not saved in android-PHP authentification
<p>I am trying to use a authentification process in android based in a database and some PHP script. When I do the login:</p>

<pre><code>...
setOnline($username);
session_start();
$_SESSION['user']=$username;
...
</code></pre>

<p>if I print the $_SESSION variable it seems to be correctly saved but when I change the activity and try to logout calling to logout.php:</p>

<pre><code>...
session_start();
if (strcmp($_SESSION['user'],$user)){
setOffline($user);
session_destroy();
echo "DONE";
}
...
</code></pre>

<p>the variable $_SESSION is empty. In all cases the username ($user) is being correctly identified. Any idea in what am I doing wrong?.</p>

<p>Thank you.</p>
