This is what we use to delete ALL session and client vars, and cookies.

Chris Norloff


<!--- delete the session (all vars, including CFID & CFTOKEN) --->
<cflock timeout="#variables.lock_timeout#" throwontimeout="Yes" scope="session" 
type="EXCLUSIVE">
        <cfset temp = #StructClear(session)#>
</cflock>

<!--- delete all client vars --->
<cfset variables.client_var_list = #GetClientVariablesList()#>
        <cfloop index="list_element" list="#variables.client_var_list#" delimiters=",">
                <cfset temp = DeleteClientVariable("#list_element#")>
        </cfloop>
        
<!--- delete cookies --->
<cfcookie name="CFID" value="empty" expires="NOW">
<cfcookie name="CFTOKEN" value="empty" expires="NOW">


---------- Original Message ----------------------------------
from: "YC Nyon" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Mon, 25 Mar 2002 22:09:36 +0800

>hi,
>
>anyone mind to share the code to do a logout page where the session is terminated.
>
>thanks
>Nyon
>
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to