True, I do agree that you should scope everything but ColdFusion doesn't
strictly enforce it so you dont have to (whos fault is that?), also with a
good naming convention you really shouldn't have any naming conflicts - not
a page  by page level at least.

-----Original Message-----
From: WebMaster [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2003 16:03
To: CF-Talk
Subject: Re: Deleting session variables


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
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to