On Tue, Jun 7, 2011 at 1:17 PM, Knutsford Software
<i...@knutsford-software.co.uk> wrote:
>
> ----- Original Message ----- From: "Daniel Drozdzewski"
> <daniel.drozdzew...@gmail.com>
> To: <android-developers@googlegroups.com>
> Sent: Tuesday, June 07, 2011 10:58 AM
> Subject: Re: [android-developers] preserve session
>
>
>> GET or POST does not matter.
>>
>> Does your server create any sessions?
>> Does your client know to accept cookies?
>>
>> You have to read up on http sessions.
>>
>> Daniel
>>
>>
>
>
>
> Err how do you do it if you want to display the index.php page for browsing?
> You don't post
>
>
> Pam

Pam,

it's true that your will more likely hit login.php using GET, but it
does not stop me using POST.
>From http session point of view GET or POST does not matter.

What matters is that the server need to create new session and inform
the client about the session ID (using cookies or URL rewrites or
hidden input fields or whatever else).

The client has to inform the server in each subsequent request that it
has session ID (through cookies or rewritten by the server URLs or
whatever else) in order to participate in session.

Server has to recognise clients passing session ID to it.

You therefore must ensure that both client and server know what to do
and when to do it.
Things like cookie driven sessions will come out of the box in php and
http client, but have to be set-up and certain logic must be there to
accommodate various scenarios and exceptions.

have a look at wikipedia as a starting point:
http://en.wikipedia.org/wiki/Session_(computer_science)

Daniel

-- 
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