The point is that it is setting each cookie to expire when the browser
closes. In this way, the CFID and CFTOKEN values go away and all the old
session variables are... well, inaccessable.

At least, that is how it is supposed to work! Probably is working for
everyone except me, the CF gods seem to be angered with me today.

(Mr. Forta, please put in a good word for me with your Father).

M

-----Original Message-----
From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 3:58 PM
To: CF-Talk
Subject: RE: Get rid of session variables when browser closes


Mike,

I'm not sure why this would work? Isn't it simply setting the values of
cookie.cfid  and cookie.token to themselves?

Mark

-----Original Message-----
From: Haggerty, Mike [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 2:48 PM
To: CF-Talk
Subject: RE: Get rid of session variables when browser closes


Am I doing something wrong?

I put the following code in my CFAPPLICATION tag but am still able to close
the browser, reopen the browser, and see the values of my session variables
as they were set prior to closing the browser:

<cfapplication name="fusebox_version"
applicationtimeout="#createtimespan(0,1,0,0)#" clientmanagement="Yes"
sessiontimeout="#createtimespan(0,0,20,0)#">
<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>

M

-----Original Message-----
From: Stover, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 2:56 PM
To: CF-Talk
Subject: RE: Get rid of session variables when browser closes


Thanks, Hal!

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

?


--
Critz
Certified Advanced Bald White Barefoot ColdFusion Developer

Crit[s2k] - <CF_ChannelOP Network="Efnet" Channel="ColdFusion">
------------------------------------
Monday, July 15, 2002, 2:39:17 PM, you wrote:

HM> I am working on a project where it is essential all session
variables are
HM> killed when the browser closes.

HM> What starategies are others using to make this happen? what I am
considering
HM> is a javascript solution that loads a new page when the window
closes.
HM> Obviously, this is not bulletproof...

HM> M





______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to