home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Documentation / snippets / getclientvariableslist.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  972 b   |  33 lines

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