Skip to content

Instantly share code, notes, and snippets.

@youcoldfusion
Created April 27, 2013 04:53
Show Gist options
  • Save youcoldfusion/5471920 to your computer and use it in GitHub Desktop.
Save youcoldfusion/5471920 to your computer and use it in GitHub Desktop.
client variable storage in coldfusion
<cfdump var="#client#">
<!--- client variable storage --->
<!---
1.Registry by default
2.Cookie
3.Datasource
--->
<!--- The selection of ClientStorage can be even done
from coldfusion administration
--->
<!--- Application.cfc --->
<cfscript>
This.name"NameOFTheApplication";
This.clientManagement="Yes";
This.clientStorage="datasourcename";
</cfscript>
<!--- <cfapplication> --->
<cfapplication name"SearchApp"
clientmanagement="Yes"
clientstorage="datasourcename">
<!--- If we dont put define clientStorage in the above,by default storage is Registry--->
@youcoldfusion
Copy link
Author

If you Select Data Source to Add as Client Store in coldfusion administrator,
two tables automatically created in your database
1.cdata
2.cglobal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment