On Tue, Jun 7, 2011 at 9:42 AM, Knutsford Software
<i...@knutsford-software.co.uk> wrote:
> How do you preseerve the php session between call a login page then calling
> the index.php page from an android app? I thought having just one
>
> DefaultHttpClient should work but it isn't
>
>
>
> Thanks

It depends how sessions are being implemented.

Most likely it is through Cookies and usually it is done by 'magic',
i.e. server creates the session and sends its ID through cookie back
to the client. Client as long as it is within the session, should pass
that cookie back to the server with each subsequent request.

Server has to also be aware of sessions and retrieve the session ID
from each incoming request.

-- 
Daniel Drozdzewski

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to