<cfset SomeBogusVariable = StructDelete(Session, key)>

where 'key' is the session variable in question.

You can do this to clear out your session as a whole:

<cfif IsStruct(session)>
         <cfloop list="#StructKeyList(Session)#" index="key">
                 <cfif "sessionID,cfToken,cfID" does not contain key>
                         <cfset temp = StructDelete(Session, key)>
                 </cfif>
         </cfloop>
</cfif>

At 02:38 PM 10/8/2002 -0600, you wrote:
>I am new to session vars so this is probably an easy answer, How do I delete
>a session var from existence? I  want to be able to make
>paramterexstits(session.var) return a false after the possibility of it
>being set to something.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to