Hey Dave,

Here's a scheme I've used to pass off session-based data into ASP.
May or may not be appropriate.

Create a table with three columns:  id, token, and sessionData.  When
leaving CF, do a CF -> WDDX of the session struct (or implement your
own native way of serializing the session data), insert it and unique
ID / token values into the table, and pass off to your PHP page with a
myPage.php?id=#id#&token=#token#.  Then, on the PHP side, hit the
table for a matching id/token pair, return the data, kill the row, and
de-serialize into php data.

-Joe

----- Original Message -----
From: Dave Wilson <[EMAIL PROTECTED]>
Date: Mon, 26 Jul 2004 17:07:19 +0100
Subject: RE: How to make CF session variables available to PHP
To: CF-Talk <[EMAIL PROTECTED]>

>You'll be struggling to share session data because it's all stored in
>memory internally inside CF.  A better option would be to use client
>variables stored in a database, which can then be queried from PHP like
>any other DB.

Hmm, This is pretty much what my first thoughts were but would rather have
something a little more direct as time constraints and other factors kind of
rule out the possibility of a rewrite from session to client vars in the
short term.

Perhaps if we knew where within memory and CF the session variables are
being stored, our developers might be able to hash something together.
Anyone any further info along those lines?

Thanks,
Dave________________________________
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to