Use session vars and set the cookies on the target page. ~G~
On Mon, Sep 8, 2008 at 7:59 PM, Darren Houle <[EMAIL PROTECTED]> wrote: > I have an app running under an application.cfc. > > There are a few pages that, under certain conditions, redirect to other > pages. > > Problem is that a user might be entering the site using one of these > redirect pages, but since it's their first hit I need to write session > cookies. > > I can't use cflocation because it has cookie issues, so I'm using > meta-refresh. But, I don't like making that round trip to the client and > relying on meta-refresh if I don't have to. > > What I'd like to do is something like this... > > <cfset myURL = "http://www.mysite.com/targetPage.cfm"> > <cfif (I have cookies to write to the browser)> > <cfoutput><meta http-equiv="refresh" content="0;url=#myUrl#"></cfoutput> > <cfelse> > <cflocation url="#myUrl#" addtoken="no"> > </cfif> > > I'm not sure what to use for (I have cookies to write to the browser)... > anyone know an easy, reliable, safe, elegant way to determine that? > > Thanks!! > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312214 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

