Problem with StructClear (Session) and Potential Fix
Due to changes to Session variables in ColdFusion 4.5, you can not use
StructClear(Session) anymore to delete someone's session. This is covered in a new
Knowledge Base article on the Allaire site.
A potential fix for this is to use the following code
|
<CFLOOP COLLECTION=#Session# ITEM="key">
<CFIF Not ListFindNoCase('CFID,CFTOKEN,SESSIONID,URLTOKEN',
Key)>
<CFSET StructDelete(Session, Key)>
</CFIF>
</CFLOOP>
|