This code will clear out session variables for a user:

<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 = HoldCFID;
session.CFToken = HoldCFT;
session.SessionID = HoldSID;
session.URLToken = HoldURLT;
</cfscript>
<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

On 11/3/06, Juman Lop <[EMAIL PROTECTED]> wrote:
> Hi every one up there,
>
> Can anyone help me to destroy all the session and cookie that registered when 
> user logout from system.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259131
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to