Personally I only ever ran into it in logoff situations.  My solution was to
simply have a logoff confirmation page with a link to log back on.  That way
the cookie gets killed on the confirmation page and when they click the link
to log back on...the cookie would be gone and the security routine would
work as intended.

Good to know about the CFHEADER approach as I'm mid-contract on a CF 5
project that will probably require this functionality.  Options are always
good ;-)

Thanks Dave

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
----- Original Message -----
From: "Dave Watts" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, August 12, 2002 2:52 PM
Subject: RE: cookie/location


> > I never thought of this as an 'issue'. I thought it
> > was just the nature of the client-server relationship.
> > If the page never makes it to the client (as it was
> > my understanding that <cflocation> executes 100% server
> > side), then the cookie couldn't/wouldn't be set.
>
> This isn't really the case. When you use CFLOCATION in a page, the server
> returns an HTTP response to the browser. This response contains a Location
> header, which instructs the browser to request another URL. There's no
> reason why the response can't also contain a Set-Cookie header, but CF in
> the past wouldn't let you do both at the same time. Other CGI programming
> languages/environments did allow this.
>
> Of course, you could have worked around this limitation in previous
versions
> by simply using CFHEADER to "manually" set the Location and Set-Cookie
> headers in the same page request, I suppose.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
> 
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
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