home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / deleteclientvariable.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  1019 b   |  32 lines

  1. <!--- This view-only example shows DeleteClientVariable --->
  2. <HTML>
  3. <HEAD>
  4. <TITLE>DeleteClientVariable Example</TITLE>
  5. </HEAD>
  6.  
  7. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  8. <BODY  bgcolor="#FFFFD5">
  9. <!--- this example is view only --->
  10. <H3>DeleteClientVariable 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 existence 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. <CFIF ListFindNoCase(GetClientVariablesList(), "User_ID") is not 0>
  22. <!--- delete that variable 
  23.     <CFSET temp = DeleteClientVariable("User_ID")>
  24.     <P>Was variable "User_ID" Deleted? <CFOUTPUT>#temp#</CFOUTPUT>
  25. </CFIF>
  26.  
  27. <P>Amended Client variable list:<CFOUTPUT>#GetClientVariablesList()#</CFOUTPUT>
  28. --->
  29.  
  30. </BODY>
  31. </HTML>       
  32.