Very well then.

In your CFapplication tag set the attribute "setClientCookies" to NO.  That
way the CFID and CFTOKEN are stored in the session struct and when the
browser closes there is no persistence.

I should really learn to be more explicit in my short answers.

If setClientCookies is set to YES then put this just below the CFAPPLICATION
tag:
<cfcookie name="CFID" value="#cookie.cfid#">
<cfcookie name="CFTOKEN" value="#cookie.cftoken#">

+-----------------------------------------------+
Bryan Love
  Macromedia Certified Professional
  Internet Application Developer
  Database Analyst
Telecommunication Systems
[EMAIL PROTECTED]
+-----------------------------------------------+

"...'If there must be trouble, let it be in my day, that my child may have
peace'..."
        - Thomas Paine, The American Crisis



-----Original Message-----
From: Douglas Jordon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 1:33 PM
To: CF-Talk
Subject: Re: deleting session variables when browser is closed


thankee kindly

Shawn Regan wrote:
> <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>
> 
> -Shawn Regan
> 
> -----Original Message-----
> From: Douglas Jordon [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 1:15 PM
> To: CF-Talk
> Subject: deleting session variables when browser is closed
> 
> 
> I seem to remember that once upon a time code was posted to delete a 
> session variable in Application.cfm when the browser is closed.
> 
> Can someone post that code?
> 
> Thnx,
> 
> Doug Jordon
> 
> 
> 

______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
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