Try this:

<cflock timeout="15" throwontimeout="No" scope="SESSION" type="EXCLUSIVE">
<cftry>
<cfscript>
variables.HoldCFID = session.CFID;
variables.HoldCFT = session.CFToken;
variables.HoldSID = session.SessionID;
variables.HoldURLT = session.URLToken;
structClear(session);
session.CFID = variables.HoldCFID;
session.CFToken = variables.HoldCFT;
session.SessionID = variables.HoldSID;
session.URLToken = variables.HoldURLT;
</cfscript>
<cfif (structKeyExists(cookie,'cfid') AND len(cookie.cfid) LT 3) OR
(structKeyExists(cookie,'cftoken') AND len(cookie.cftoken) LT 2)>
       <!---MFC: {destroy the session if the token values are blank} --->
       <cfset structClear(session)>
</cfif>
<cfcatch type="Any">
       <!---MFC: {In case the session structure was cleared without saving
the variables first} --->
       <cfset structClear(session)>
</cfcatch>
</cftry>
</cflock>

Enjoy,
Mike Chabot

http://www.linkedin.com/in/chabot

On Wed, Jun 30, 2010 at 12:40 PM, Lewis Billingsley
<[email protected]> wrote:
>
> HI Mike,
>
>    I'm interested in this too.  Please tell me about other methods to clear
> the session.
>
> Le

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5037
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to