Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / September 2007



Tip: Looking for answers? Try searching our database.

Client Variables Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amosl - 27 Aug 2007 18:32 GMT
I'm not sure where to post this so I'll start here.

We have two codlfusion servers, one is running coldfusion 5 and the other is
running coldfusion MX version7.
We are sharing a sql database between the server to store client variables so
that when someone logs into one they are logged into the other.  In the process
of debugging a problem, I noticed a few weird things.  On the MX server if I
create a page to dump the client structure, there's no problem, however, on
Coldfusion 5 when I run the code <cfdump var="#client#"> I get the error:

Error resolving parameter CLIENT

If I output the member id <cfoutput>#client.cfid#</cfouput> it shows the
appropriate information, why doesn't it recognize the client structure in the
cfdump?

Moreover,  I've created my own client variables like client.memberid .  When I
run #GetClientVariablesList()# it shows client.memberid as existing, but when I
try to output its value with <cfoutput>#client.memberid #</cfouput>  I get the
error:

Error resolving parameter CLIENT.MEMBERID

Any idea why coldfusion 5 isn't reocgnizing the structure and the custom
variables?
Fernis - 27 Aug 2007 22:25 GMT
It's obviously a known CF5 limitation.

Have a look at http://www.cflib.org/udf.cfm?ID=142 - this will likely solve your problem.

Hope I got you right, and this will help.
Amosl - 27 Aug 2007 22:36 GMT
Thanks!  I'll take a look
Amosl - 27 Aug 2007 22:39 GMT
I just took a look and am not sure this is going to solve the problem.  The
problem seems to be that when the coldfusion MX server updates or creates the
client variables in the database,  Coldfusion 5 can't recognize them.  When
Coldfusion 5 updates or creates a new variable,  Coldfusion MX recognizes them
with no problem.
Fernis - 28 Aug 2007 14:13 GMT
What kind of content do you have as client variable values?

I know for a fact that CF5 can't have structures or arrays stored in client
variables. Probably unrelated to your problem anyway, but I just thought I'd
mention.

Are you using exactly the same CFML code in CF5 and CFMX to both read and
write the variables to/from DB?
tomj - 06 Sep 2007 20:48 GMT
ColdFusion 5 doesn't recognize CFMX client variables because the format is slightly different between CFMX6/7/8 and CF5.

I would recommend *not* sharing client variables between CF5 and CFMX.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.