You MIGHT be able to force the cookie set with your own <cfheader />. I believe the http command is set-cookie so it would be <cfheader name="set-cookie" value="#thevalueofmycookie#" />.
Im not sure, frankly if this would work or not. There are alot of issues surrounding how/when generated output gets sent to the browser. A nicely timed <cfflush /> might also help to push the content out to the browser. But it's still just a shot in the dark. I agree with your solution, Ron. I always just avoid using a cflocation and a cookie set at the same time and develop my application around avoiding that circumstance. I never rely on javascript to do the work. Jeremy -----Original Message----- From: Ron Mast [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 7:47 AM To: [EMAIL PROTECTED] Subject: RE: RE: Cf cookies I'm using Cfserver 5.0. We are still debating about going to CFMX. Yes, I'm using cflocation after my statement <cfcookie name="TCCookie" Value="truth" Expires="never">. To resolve the issue...since our clients are logging in and are setting a session...I just look to see if the following session IsDefined and set the cookie in my application.cfm. :) Seems to work just fine. Figured it out when I decided to isolate the setting of cookie without the cflocation, which I knew worked from previous applications, for validation. Thanks all for the response. Ron -----Original Message----- From: Jeremy Ridout [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 6:03 PM To: '[EMAIL PROTECTED]' Subject: RE: RE: Cf cookies The cflocation tag does generate an http header. The http header that the <cflocation /> tag generates redirects the client to change requested pages. My guess is that now, instead of just automatically firing off a redirection header at the first sight of a <cflocation />, they first look at the page to see if the page had set a cookie before the <cflocation />. If so, then they generate a set-cookie header, then do the redirection. With this one, they just made the CFMX server smarter--as it should have been in the first place. Jeremy -----Original Message----- From: derek bumpas [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 5:21 PM To: [EMAIL PROTECTED] Subject: RE: RE: Cf cookies How so? Are they sending HTTP Headers regardless now? Derek -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Billy Cravens Sent: Monday, November 18, 2002 5:03 PM To: [EMAIL PROTECTED] Subject: RE: RE: Cf cookies Keep in mind that this limitation doesn't exist in CFMX. ************************** Billy Cravens Web and Software consulting www.Architechx.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED] Sent: Monday, November 18, 2002 3:39 PM To: [EMAIL PROTECTED] Subject: Re: RE: Cf cookies Are you doing a CFLOCATION on the page you are setting your cookie? Just a guess, but if so, they are never actually being set. Try using something like: document.location.href='[url]'; rather than CFLOCATION -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ron Mast Sent: Monday, November 18, 2002 11:54 AM To: [EMAIL PROTECTED] Subject: Cf cookies Hi All, I'm trying to set a cookie...looks like this: <cfcookie name="TCCookie" Value="truth" Expires="never"> I want to do the following but I keep coming up with "TCCookie is not defined!" when I ran the above code: <cfif IsDefined("cookie.TCCookie")> TCCookie is defined! <cfelse> TCCookie is not defined! </cfif> I have an application.cfm in my wwwroot: <cfapplication name="colors" sessionmanagement="Yes" sessiontimeout="#CreateTimeSpan(0,0,20,0)#" setclientcookies="Yes"> Does anyone know what I'm doing wrong? Thanks in advance. Ron Mast Truth Hardware Webmaster (507)444-4748 ------------------------------------------------------------------------ - This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org
