Whatever message this page gives is out now! Go check it out!

GetClientVariablesList

Last update:
May 18, 2026

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

Function syntax

GetClientVariablesList()

See also

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>

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page