For one thing you should always "scope" your reference to a var. It is
possible that somewhere on the page, or in the URL, or in a FORM var, you
passed one with the same name as your session var.
----- Original Message -----
From: "Thane Sherrington" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, January 31, 2003 10:32 AM
Subject: Deleting session variables
> Using CF5.
>
> I setup two session variables on one page, and on the next, I check them
> and then at the end of the second page, I use this code to delete them.
>
> <cflock timeout=10 scope="Session" type="Exclusive">
> <cfset tempvar=StructDelete(Session, "MissedQuestionID")>
> <cfset tempvar=StructDelete(Session, "CategoryID")>
> </cflock>
>
> But they don't get deleted. It clears the values from them, but when I
put
> this code immediately after the delete code, it tells me they still exist.
>
> <CFIF IsDefined("MissedQuestionID")>
> MissedQuestionID Still Defined.
> </CFIF>
>
> Is there a way to delete them completely?
>
> T
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
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
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4