[FX.php List] Cookie issue

Steve Winter steve at bluecrocodile.co.nz
Fri Feb 22 11:03:35 MST 2008


Hi Bob,

Your second assumption is correct... the session data is still stored on the
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...

HTH...

Steve

-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Bob Patin
Sent: 22 February 2008 17:55
To: FX.php Discussion List
Subject: Re: [FX.php List] Cookie issue

I just re-read your post; it sounds like you might be saying that the  
URL would only contain the sessionID. If that's the case though, then  
where are all these 20 variables actually stored during the session?

Time to go read the page on the PHP.net site...

BP


On Feb 22, 2008, at 11:43 AM, Leo R. Lundgren wrote:

>
> I use the standard session setup with cookies. But it's also  
> possible to keep the session id (which is the piece of information  
> that is stored in a session cookie) floating along in links. Check  
> the PHP manual under the session part and you'll see some examples.

_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list




More information about the FX.php_List mailing list