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=sharedVars_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:4649
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15