home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Documentation / snippets / getclientvariableslist.cfm < prev    next >
Encoding:
Text File  |  1999-04-12  |  1.0 KB  |  34 lines

  1. <!--- This view-only example shows GetClientVariablesList --->
  2. <HTML>
  3. <HEAD>
  4. <TITLE>GetClientVariablesList Example</TITLE>
  5. </HEAD>
  6.  
  7. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  8. <BODY  bgcolor="#FFFFD5">
  9. <!--- this example is view only --->
  10.  
  11. <H3>GetClientVariablesList Example</H3>
  12.  
  13. <P>This view-only example deletes a client variable called
  14. "User_ID", if it exists in the list of client variables
  15. returned by GetClientVariablesList().
  16. <P>This example requires the existance of an Application.cfm file
  17. and that client management be in effect.
  18. <!--- 
  19. <CFSET client.somevar="">
  20. <CFSET client.user_id="">
  21. <P>Client variable list:<CFOUTPUT>#GetClientVariablesList()#</CFOUTPUT>
  22.  
  23. <CFIF ListFindNoCase(GetClientVariablesList(), "User_ID") is not 0>
  24. <!--- delete that variable --->
  25.     <CFSET temp = DeleteClientVariable("User_ID")>
  26.     <P>Was variable "User_ID" Deleted? <CFOUTPUT>#temp#</CFOUTPUT>
  27. </CFIF>
  28.  
  29. <P>Amended Client variable list:<CFOUTPUT>#GetClientVariablesList()#</CFOUTPUT>
  30. --->
  31.  
  32. </BODY>
  33. </HTML>       
  34.