>I know it says in the documentation ... > >Warning >Do not set a cookie variable on the same page that you use the CFLOCATION >tag. >If you do, the cookie is never saved on the browser; therefore, it is of no >value. > >So how can I set a cookie on a processing page that need to have a >redirect? >
That warning is no longer true in CFMX, any version. Since you don't specify which version of CF you're using, I don't know if that applies to you. However, I have seen two popular suggestions come to the list to do this: 1. Direct to one page where you set the cookie and then do a Javascipt location.href to the next page. 2. Set the cookie, and then use the cfheader tag to re-direct, i.e. <cfcookie name="firstName" value="Dave" expires="NEVER"> <cfheader name="Location" value="urlpath/to/file.cfm"> <cfheader statuscode="302" statustext="Document moved"> Either one of those approaches should get it done for you. Regards, Dave. _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

