[FX.php List] Cookie issue
Leo R. Lundgren
leo at finalresort.org
Fri Feb 22 16:33:48 MST 2008
23 feb 2008 kl. 00.28 skrev Bob Patin:
> So here's the question then: if I were to pass the session variable
> in all of my links and URLs (which I seriously doubt I'm going to
> go in and do), and they had cookies disabled, the session variable
> would tell my web server which set of session data to retrieve, and
> all would be well?
>
> The downside of this is the logistical nightmare of adding the
> variable to every link on the site, and this particular web app has
> literally dozens of them per page because it shows cars, and each
> car has a link on it to farther into the web app.
>
> But it's a possibility... :)
>
> BP
>
> On Feb 22, 2008, at 12:03 PM, Steve Winter wrote:
>
>> server, and all you're passing in the URL is the session ID...
>>
>> If you've got a session started, and the user has cookies, when
>> you do a
>> print_r($_REQUEST); you'll see the session ID in there... all PHP
>> is doing,
>> on the server side is looking for that session ID in the $_REQUEST
>> data...
>> it doesn't care if it comes from a cookie, a URL or a form post...
>>
>> On the page where you first create the session with session_start
>> SID then
>> contains the value of the session ID, and can from that point on
>> be used to
>> append the session ID to any get or post, at which point all the
>> session
>> data, which is on the server, is available...
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
Bob,
Read http://se2.php.net/session under the heading "Passing the
Session ID". It explains what you need to know. Unless you have a
very custom way of outputting your pages I think PHP can handle it
for you.
-|
More information about the FX.php_List
mailing list