Question
CFMX7 not using database for client variables
I have been unable to get MX7 (7,0,1,116466 with chf7010002
update) running on win2003 to use my SQL2000 or SQL2005 database to
store client variables. This has happened on multiple installs for
different servers.
Here is what I have done thus far:
- created the database to store the variables in SQL
- created the datasource (client_variable_storage) for the database in cf admin
- added the datasource (client_variable_storage) as a storage option in the client variables section of cfadmin
- - - selected create client database tables (created successfully)
- - - selected Disable global client variable updates option
- selected client_variable_storage as the default storage mechinism in the client variables section of cfadmin
- restarted cf
When I ran my app, nothing enters into the CDATA or CGLOBAL fields in the database. Here is the cfapplication tag I am using:
<cfapplication clientmanagement="Yes" sessionmanagement="Yes" setclientcookies="Yes" sessiontimeout="#CreateTimeSpan(0,2,0,0)#" name="mycf_System">
After this did not work I wrote a cfm page using this datasource to create a table, insert data, and read the data to test permissions. This worked fine.
I then created a new cfm page with the same cfapplication tag on it except adding the clientstorage attribute:
<cfapplication clientmanagement="Yes" sessionmanagement="Yes" setclientcookies="Yes" sessiontimeout="#CreateTimeSpan(0,2,0,0)#" name="mycf_System" clientstorage="client_variable_storage">
This also did not use the database to store client variables.
Also, each time I ran a test, I cleared out my cookies so I would get the proper initiation for the test.
Any thoughts on what to do? I'm at a loss.
Thanks!
Here is what I have done thus far:
- created the database to store the variables in SQL
- created the datasource (client_variable_storage) for the database in cf admin
- added the datasource (client_variable_storage) as a storage option in the client variables section of cfadmin
- - - selected create client database tables (created successfully)
- - - selected Disable global client variable updates option
- selected client_variable_storage as the default storage mechinism in the client variables section of cfadmin
- restarted cf
When I ran my app, nothing enters into the CDATA or CGLOBAL fields in the database. Here is the cfapplication tag I am using:
<cfapplication clientmanagement="Yes" sessionmanagement="Yes" setclientcookies="Yes" sessiontimeout="#CreateTimeSpan(0,2,0,0)#" name="mycf_System">
After this did not work I wrote a cfm page using this datasource to create a table, insert data, and read the data to test permissions. This worked fine.
I then created a new cfm page with the same cfapplication tag on it except adding the clientstorage attribute:
<cfapplication clientmanagement="Yes" sessionmanagement="Yes" setclientcookies="Yes" sessiontimeout="#CreateTimeSpan(0,2,0,0)#" name="mycf_System" clientstorage="client_variable_storage">
This also did not use the database to store client variables.
Also, each time I ran a test, I cleared out my cookies so I would get the proper initiation for the test.
Any thoughts on what to do? I'm at a loss.
Thanks!