You must use expire=now

In LOGOUT.cfm :

        <cfset client.cfid = 0>
        <Cfset client.cftoken = 0>
           
          <!--- New --->
        <cfcookie name="cfid" value="0" expires=now">   
          <cfcookie name="cftoken" value="0" expires=now">
        

        <!---Go back Home--->
        <cflocation url=home.cfm" addtoken="no">

but, if you have a client management active, when you back to home.cfm a new cfid 
appear.

good luck

Gabriel Bulfon
[EMAIL PROTECTED]

-----Mensaje original-----
De: Consultant [mailto:[EMAIL PROTECTED]]
Enviado el: Sunday, August 12, 2001 2:15 AM
Para: CF-Server
Asunto: Kill CFID and CFToken


Hi ,

I have a rather stupid question to ask. Does anybody know how to get rid of
the CFID and CFToken?
Here's my cfapplication:

<cfapplication name="AppBF"
               clientmanagement="Yes"
               sessionmanagement="Yes"
               setclientcookies="Yes"
               clientstorage="cookie"
              sessiontimeout="#CreateTimeSpan(0, 0, 120, 0)#">


As you can see, I'm using CLIENT scope var to store my CFID and CFTOKEN.
I've created another page for the user to LOGOUT The reason behind this:
when the user LOGIN back in the future, she can get a fresh pair of CFIDE
and CFTOKEN.

In LOGOUT.cfm :

        <cfset client.cfid = 0>
        <Cfset client.cftoken = 0>

        <!---Go back Home--->
        <cflocation url=home.cfm" addtoken="no">

Even after I ran this page, CLIENT.CFID and CLIENT.CFTOKEN are still
there!!!
Can't seem to get rid of them ... HELP!


Thanks a bunch!!!

poor guy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to