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

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