----- Original Message ----- From: "Daniel Drozdzewski" <[email protected]>
To: <[email protected]>
Sent: Tuesday, June 07, 2011 9:54 AM
Subject: Re: [android-developers] preserve session


On Tue, Jun 7, 2011 at 9:42 AM, Knutsford Software
<[email protected]> 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





9I am using httppost for the login page but







String urltemp = "http://www.blabla/index.php";;

Intent i = new Intent(Intent.ACTION_VIEW);

i.setData(Uri.parse(urltemp));

startActivity(i);



for the index page



Should I change that to a post to get it to work?





Thanks

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

Reply via email to