Dylan Bromby
[EMAIL PROTECTED]


Dylan;
Sorry - but for some strange reason I have not yet received your first
reply! In any case - I will go play with DeleteClientVariable(), though what
I really need is for the CFID and CFTOKEN cookies to disappear form the
client browser. They seem to "remain". So, I close my browser, but on return
to the site - the system still knows my CFID and CFTOKEN! As far as I can
tell - this shouldn't be happening. It's a security issue that I need to
overcome.

Thank you for your time,
Stephen R. Cassady
[EMAIL PROTECTED]


-----Original Message-----
From: Dylan Bromby [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 9:40 AM
To: [EMAIL PROTECTED]
Cc: 'Stephen R. Cassady'
Subject: RE: Client Variables NOT expiring


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/[email protected]/
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to