View comments | RSS feed

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.

Category

List functions, Other functions

Function syntax

GetClientVariablesList()

See also

DeleteClientVariable

Usage

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

Example

<!--- This example is view-only. --->
 
<h3>GetClientVariablesList Example</h3>

<p>This view-only example deletes a client variable called "User_ID", if it exists
in the list of client variables returned by GetClientVariablesList(). <p>This example requires the existence of an Application.cfm file and that client
management be in effect. <!--- <cfset client.somevar = ""> <cfset client.user_id = ""> <p>Client variable list:<cfoutput>#GetClientVariablesList()#</cfoutput> <cfif ListFindNoCase(GetClientVariablesList(), "User_ID") is not 0> <!--- delete that variable <cfset temp = DeleteClientVariable("User_ID")> <p>Was variable "User_ID" Deleted? <cfoutput>#temp#</cfoutput> </cfif> <p>Amended Client variable list:<cfoutput>#GetClientVariablesList()# </cfoutput> --->

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting

Version 7

Comments


Ashish-Saxena said on Aug 23, 2007 at 1:45 AM :
(1)The code example will not run, as it is improperly commented and used the mismatch of <cfif> tag.
(2)It should be noted that, before CLIENT variables can be used, the CLIENT state management system must be enabled using the cfapplication tag.
halL said on Aug 23, 2007 at 7:52 AM :
For a corrected runable version see the ColdFusion 8 Livedocs.

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000473.htm