Description

Finds the client variables to which a page has write access.

Returns

Comma-delimited list of non-read-only client variables, as a string.

Category

List functionsOther functions

Function syntax

GetClientVariablesList()

See also

DeleteClientVariable

Usage

The list of variables returned by this function is compatible with ColdFusion list functions.

Example

<h3>GetClientVariablesList Example</h3> 

<!--- The following line enables client variables. 
You would normally do this in Application.cfc.---> 
<cfapplication clientmanagement="yes"> 

<p>This example creates two client variables and deletes the User_ID client variable, 
if it exists in the list of client variables returned by GetClientVariablesList().</p> 

<cfset client.somevar = ""> 
<cfset client.User_ID = ""> 
<p>Client variable list: <cfoutput>#GetClientVariablesList()#</cfoutput></p> 

<cfif ListFindNoCase(GetClientVariablesList(), "User_ID") is not 0> 
Delete client.User_ID variable. 
<cfset temp = DeleteClientVariable("User_ID")> 
<p>Was variable "User_ID" Deleted? <cfoutput>#temp#</cfoutput> 
</cfif> 

<p>Amended Client variable list: <cfoutput>#GetClientVariablesList()# 
</cfoutput>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy