Not setting the "expires" attributes of the cookie causes it to be a session, not persistent, cookie. It dies when the browser is closed.
Matthew P. Smith Web Developer, Object Oriented Naval Education & Training Professional Development & Technology Center (NETPDTC) (850)452-1001 ext. 1245 [EMAIL PROTECTED] -----Original Message----- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Monday, July 15, 2002 2: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 ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. 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

