Ick. Don't use ParameterExists(). Use IsDefined().

To delete a session variable, remember that Session is just a structure:

<cfset temp=StructDelete(Session,"var")>

<cfif NOT IsDefined("Session.var")>
 It's gone!
</cfif>

(Don't forget your CFLOCK)


> -----Original Message-----
> From: Nick Varner [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 08, 2002 4:38 PM
> To: CF-Talk
> Subject: delete session vars
> 
> 
> 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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to