GetClientVariablesList

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.

Function syntax

GetClientVariablesList()

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>