hi

this  code will expire the client variables when the browser closes

hth
mark

<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>

-----Original Message-----
From: Andrew Scott [mailto:[EMAIL PROTECTED]]
Sent: 11 February 2002 07:00
To: CF-Talk
Subject: RE: Client Vars expiring? When? 


Mike,

Are you sure that you are expiring the CFID & CFToken each and every
time in the application.cfm template. I posted code in the CF Aussie
mailing list that will do what you want it to do.


-----Original Message-----
From: Mike Kear [mailto:[EMAIL PROTECTED]] 
Sent: Monday, 11 February 2002 4:40 PM
To: CF-Talk
Subject: Client Vars expiring? When? 

I thought that client variables were extinguished every time the 
browser
was
closed.   Perhaps I was wrong with this.

I am developing an access control app using client vars and when I 
close
the
browser and open it again, I am still logged in and can just go direct
to my
protected page.   When I open a totally different browser (e.g.
netscape4.7
instead of IE5,) I am sent to the login page as I expected, so part of
the
system is working ok.

Do client vars expire when the browser is closed? Or do I have to 
expire
them myself somehow?  In which case,  how do I detect that the browser
has
closed and the client vars have to be killed?

Cheers,
Mike Kear
Windsor, NSW, Australia
AFP WebWorks



______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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