Hi Mark I don't see any problems with the response you are getting.
But just in case this is of any use, below is the code I normally use to clear sessions on browser close and it seems to work fine regardless of browser. <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> Mark -----Original Message----- From: Mark Woods [mailto:[EMAIL PROTECTED] Sent: 26 July 2004 17:01 To: [EMAIL PROTECTED] Subject: [ cf-dev ] IE and per-session cookies help, either I'm missing something or IE is being stupid again (both equally possible ;) I want a CF session to time out when, and only when, the browser closes. I've setClientCookies="no" in my cfapplication call and then manually set the cfid and cftoken cookies without an expiration datetime. This *should* work as far as I know, but the session still times out after 20 mins in IE5.01 and IE6. Mozilla behaves itself and the response from the server goes a little something like this... HTTP/1.1 200 OK Server: Microsoft-IIS/4.0 Date: Mon, 26 Jul 2004 15:40:52 GMT Content-type: text/html Page-Completion-Status: Normal Set-Cookie: CFID=XXXXXX; path=/blah; domain=.mysite.ie; Set-Cookie: CFTOKEN=XXXXXXX; path=/blah; domain=.mysite.ie; Can anyone see anything wrong with this response? The only thing I'm aware of is the absence of a content-length header, but I don't see why this would cause a problem. How about with my code, below?? <cfapplication name="#request.settings.appName#" sessionmanagement="Yes" setClientCookies="no"> <cfif not isDefined("cookie.cfid")> <cfif len(request.settings.appWebRoot)> <cfset path = request.settings.appWebRoot> <cfelse> <cfset path = "/"> </cfif> <cfset domain = REReplace(cgi.server_name,"^[^\.]+\.","")> <!--- set cfid and cftoken cookies as session cookies ---> <cflock scope="session" type="readonly" timeout="3"> <cfcookie name="cfid" value="#session.cfid#" path="#path#" domain=".#domain#"> <cfcookie name="cftoken" value="#session.cftoken#" path="#path#" domain=".#domain#"> </cflock> </cfif> -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]
