How exactly are you appending the variable to the URLs in your pages?

Can't you do this before the cfapplication tag:

if (isDefined("cookie.CFID") and isDefined("cookie.CFTOKEN") and
isDefined("url.CFID") and isDefined("url.CFTOKEN") and cookie.CFID neq
url.CFID and cookie.CFTOKEN neq url.CFTOKEN) {
   NewCFID = cookie.CFID;
   NewCFTOKEN = cookie.CFTOKEN;
}

and this after:

if(isDefined("NewCFID") AND isDefined("newCFTOKEN")) {
url.cfid = NewCFID;
url.cftoken = newCFTOKEN;
session.urltoken = "CFID=#newCFID#&CFTOKEN=#newCFTOKEN#";
}

Spike
--------------------------------------------
Stephen Milligan
Code poet for hire
http://www.spike.org.uk

Do you cfeclipse? http://cfeclipse.tigris.org


>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of Nathan Strutz
>Sent: Monday, August 30, 2004 3:48 PM
>To: CF-Talk
>Subject: Re: CFID url / cookie preference
>
>Barney Boisvert wrote:
>
>> Why would it be a lot of conditionals?   Set a variable
>> "urlTrackingVars" to either the CFID/CFTOKEN string (no
>cookies) or to
>> the empty string (has cookies), and then append it to every
>url.  Bam,
>> you're done.
>
>Yeah, that still means I have to run through and change every link on
>the site, something i'm not looking forward to.
>
>Would be nice if I could trick JRun into taking a different session.
>
>>
>> If you're using a helper variable for your URLs (like 'self' in
>> FuseBox), then you can just append it there and not have to worry
>> about it anywhere else.  Gotta love abstraction.
>
>and gotta hate not having it :)
>
>-nathan strutz
>http://www.dopefly.com/
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to