Whenever I use client variables I've always let CF create the tables.

Try once more but let CF create the tables, if that doesn't work, it'll be a
permissions problem. Can CF access the tables?

Adrian

> -----Original Message-----
> From: marc -- [mailto:[email protected]]
> Sent: 17 July 2009 16:28
> To: cf-newbie
> Subject: Unable to enable Clientvariables
> 
> 
> Hi,
> I am already spending a few hours on using Clientvariables and I am not
> able to get them to work. When I try to access the Client scope like
> this
> 
> cfif StructKeyExists(arguments.loginData,"rememberLogin")>
>       <cfset client.logindata.email="#arguments.loginData.email#">
>       <cfset
> client.logindata.password="#arguments.loginData.password#">
> </cfif>
> 
> I get an error
> 
> "Error Messages:  The requested scope client has not been enabled.
> Before client variables can be used, the client state management system
> must be enabled using the cfapplication tag."
> 
> pointing to the line with
> 
> <cfset client.logindata.email="#arguments.loginData.email#">
> 
> Here's what I did to get client variables to work:
> 
> In phpMyAdmin I created a database 'client_variables' with fields
> cdata & cglobal (specifics about the db here:
> http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=share
> dVars_08.html);
> In the CFAdministrator under Data & Services I created a datasource
> pointing to this db;
> 
> In the CFAdministrator under Server settings / Client variables I
> selected "client_variables" under "Select Data Source to Add as Client
> Store" and clicked "Add";
> 
> Under "Server Settings > Client Variables" / "Select Default Storage
> Mechanism for Client Sessions"  I choose the newly added datasource
> client_variables.
> 
> That should be it.
> 
> Now after the first error message I got I _also_ added this line to the
> Application.cfc in my webroot:
> 
> <cfset this.clientManagement="true">
> 
> This made no difference. Using <cfapplication clientmanagement="true">
> also made no difference. I restarted the CF server and Apache several
> times in the process though I don't think that should be necessary.
> Here I'm running out of options.
> 
> Any help is appreciated,
> 
> Marc
> 
> Coldfusion 8.01 on XP
> MySQL 5.0.51b
> Coldbox 2.6.3


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4650
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to