<cfscript>
structdelete(session, "varName");
</cfscript
-----Original Message-----
From: Thane Sherrington [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 31, 2003 10:32 AM
To: CF-Talk
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
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4