> This is not CF's fault, this is because redirecting browsers with a
> "HTTP/1.1 302 Object Moved" means the browser fails to do anything with
> cookies.  You would have this problem with any scripting language.

Actually, this is not true. You can do this with almost any scripting
language, including ColdFusion. However, you cannot do it with ColdFusion
using the <CFCOOKIE> and <CFLOCATION> tags because of a "design flaw" in the
way ColdFusion handles the <CFLOCATION> tag.

To accomplish this in ColdFusion, you need to write the HTTP headers
manually. You can find an example at the following location:

http://www.teamallaire.com/tutorials/index.cfm?fuseaction=display&topicid=01
3

The code is:

<CFCOOKIE NAME="someName" VALUE="someValue">
<CFHEADER NAME="Refresh" VALUE="0; URL=someURL.cfm">

> * can't remove/delete cookies that are mixed case (sometimes set by other
> programs on your website)

This is not true either. You cannot do it with the <CFCOOKIE> tag, this is
true. However, you can do it by manually writing the cookie information to
the header, which is the way you would do it almost any other language.

Benjamin S. Rogers
Web Developer, c4.net
Voice: (508) 240-0051
Fax: (508) 240-0057


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-community@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to