you can use DELETECLIENTVARIABLE("VAR")

it works great

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 1:07 PM
To: CF-Talk
Subject: RE: how do i delete client vars?


> I know how to delete a session variable using:
>
> <cfset structdelete(session, "myVariable")>
>
> it works fine but I tried it with a client variable:
>
> <cfset structdelete(client, "myVariable")>

The client scope isn't a structure. You can't directly delete client
variables, but you can set their values to empty strings. If you really,
really want to delete a client variable, you could query the client data
repository directly (assuming you're storing client variables in a database
as you probably should), but I wouldn't recommend this.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server!      Instant Activation for $99/month w/Free 
Setup from SoloServer      PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support     
 Visit SoloServer, https://secure.irides.com/clientsetup.cfm.

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to