> OK I know that you can't set a cookie and then use 
> CFLOCATION, but I've heard there is a workaround 
> using headers.
> 
> Can anyone shed some light?
> 
> BTW this is on CF 5 (yes I know CFMX doesn't have 
> this bug/feature..hehe)

You can use the CFHEADER tag to set cookies and change locations. In this
case, you might as well set the cookie with CFCOOKIE, then change the
location with CFHEADER:

<cfcookie ...>
<cfheader name="Location" value="urlpath/to/file.cfm">
<cfheader statuscode="302" statustext="Document moved">

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

::::::::::::: dream :: design :: develop :::::::::::::
MXDC 02 :: Join us at this all day conference for 
designers & developers to learn tips, tricks, best 
practices and more for the entire Macromedia MX suite.

September 28, 2002  ::  http://www.mxdc02.com/
(Register today, seats are limited!)
::::::::::::::::::::::::::::::::::::::::::::::::::::::

______________________________________________________________________
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