The key is that you're not setting the EXPIRES attribute, so the cookies
are killed when the browser is closed.  I use similar code, provided by
Alexander Lamon on 3/28/00.  It goes into Application.cfm:

<cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
  <cfset cfid_local = Cookie.CFID>
  <cfset cftoken_local = Cookie.CFTOKEN>
  <cfcookie name="CFID" value="#cfid_local#">
  <cfcookie name="CFTOKEN" value="#cftoken_local#">
</cfif>

-David

On Fri, 26 May 2000 14:19:11 -0700 [EMAIL PROTECTED] writes:
> Is this possible?
> 
> --K
> 
> ====================
> Katrina Chapman
> Consultant
> Ameriquest Mortgage
> ----- Forwarded by Katrina Chapman/CORP/AMQ on 05/26/00 02:19 PM 
> -----
>                                                                      
>                                                             
>                     Tamara Kaplan                                    
>                                                             
>                                          To:     Katrina 
> Chapman/CORP/AMQ@AMQ                                                 
>    
>                     05/26/00 01:17       cc:                         
>                                                             
>                     PM                   Subject:     Re: Bug report 
> update 5/25/2000(Document link: Katrina Chapman)            
>                                                                      
>                                                             
>                                                                      
>                                                             
> 
> 
> 
> Although I have never done this myself, this seems to work:
> 
> You specify the timeout like normal with something like this:
> 
> <CFAPPLICATION NAME="WHATEVER" SESSIONMANAGEMENT="Yes" 
> SESSIONTIMEOUT="
> #CreateTimeSpan(0,1,30,0)#">
> 
> And then you specifically set cookie values.  By specifically naming 
> these
> variables, they will die when the browser is closed.
> 
> <CFCOOKIE NAME="CFID" VALUE="#Session.CFID#">
> <CFCOOKIE NAME="CFTOKEN" VALUE="#Session.CFTOKEN#">
> 
> Please give it a try and see if it works.  Otherwise, I agree with 
> you that
> they are in opposition with each other, and no, we wouldn't want to 
> rely on
> JavaScript to do this.
> 
> Thanks.
> Tamara
> 
> 
> 
>                                                                      
>                                                             
>                     Katrina                                          
>                                                             
>                     Chapman              To:     Tamara 
> Kaplan/CORP/AMQ@AMQ                                                  
>     
>                                          cc:                         
>                                                             
>                     05/26/00 11:53       Subject:     Re: Bug report 
> update 5/25/2000(Document link: Tamara Kaplan)              
>                     AM                                               
>                                                             
>                                                                      
>                                                             
>                                                                      
>                                                             
> 
> 
> 
> #488 "Return to Broker Login results in lost data" has to do with 
> the
> session timeout.  I remember Kimberly saying that we would address 
> this
> issue when we have the users test the site.  My 2 cents: it's too 
> short.  I
> would suggest 30 minutes and then see if we need it bumped up during 
> the
> pilot.
> 
> New/Re-open: User info is not logged out upon closing the browser.  
> Tested
> v.4.4.
> 
> These two are in direct opposition to each other.  You can't have a 
> timeout
> of 30 minutes and then be logged out as soon as the browser closes.  
> At
> least not the way that we are currently maintianing state.  We're 
> using
> cookies.
> 
> The only way you could do it would be with a javascript:onClose 
> event, but
> that's unreliable.
> 
> --K
> 
> ====================
> Katrina Chapman
> Consultant
> Ameriquest Mortgage
> 
> 
> 
> 
> 
>
-------------------------------------------------------------------------
-----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk

> or send a message to [EMAIL PROTECTED] with 
> 'unsubscribe' in the body.

________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
Juno now offers FREE Internet Access!
Try it today - there's no risk!  For your FREE software, visit:
http://dl.www.juno.com/get/tagj.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to