i sent a reply to this yesterday. have you tried the DeleteClientVariable()
function?

-----Original Message-----
From: Stephen R. Cassady [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 8:18 AM
To: CF-Talk
Subject: Client Variables NOT expiring



I'm having the darnedest time trying to delete client files on browser close
or after a period of time. I'm even trying to follow Hal Helms great
"Tracking State Management with Cold Fusion" to run this correctly. Even
running the code below - the CFID and CFTOKEN are exactly the same, and are
unforgotten. They are supposed to disappear, but they don't!

Here's a chuck of my application file:


<!--- Application Settings  --->
<cfapplication name="thisapplication" clientmanagement="Yes"
sessionmanagement="Yes" setclientcookies="Yes"
sessiontimeout="#CreateTimeSpan(0,0,20,0)#"
clientstorage="thisapplication_Client">


<!--- Expire the Client Variables when the browser closes --->
<CFIf IsDefined("cookie.CFID") AND Isdefined("cookie.CFTOKEN")>
        <CFSET localCFID = Cookie.CFID>
        <CFSET localCFTOKEN = Cookie.CFTOKEN>
        <CFCOOKIE name="CFID" value="#localCFID#">
        <CFCOOKIE name="CFTOKEN" value="#localCFTOKEN#">
</CFIF>


<!--- Expire the Client Variables on 5 minutes --->
<CFPARAM NAME="CLIENT.CheckLastVisit" DEFAULT="#CreateODBCDateTime(Now())#">
<CFSET Compare = DateCompare(DateAdd("n", "-5", CreateODBCDateTime(Now())),
CLIENT.CheckLastVisit)>
<CFIF Compare IS NOT 1>
        <CFSCRIPT>StructClear(Session);</CFSCRIPT>
        <CFCOOKIE NAME="CFID" VALUE="0" EXPIRES="NOW">
        <CFCOOKIE NAME="CFTOKEN" VALUE="0" EXPIRES="NOW">
<CFELSE>
        <CFSET CLIENT.CheckLastVisit = CreateODBCDateTime(Now())>
</CFIF>


Help!!!!!!!!!!!!!!!!!

Stephen R. Cassady
[EMAIL PROTECTED]
http://www.tallylist.com



Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to