[FX.php List] Cookie issue
Bob Patin
bob at patin.com
Fri Feb 22 16:28:32 MST 2008
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...
More information about the FX.php_List
mailing list