Ryan, thanks for the suggestion. As it turns out we had some code deliberately 
clearing out and timing out the cookie immediately (to force a session to die 
on browser close). I've disabled this code for now and that's fixed the problem.

However, took two days to set up a safe test app and run through tests on our 
production servers that allowed me to step through the code. :-(

-----Original Message-----
From: Ryan Stille [mailto:[email protected]]
Sent: 08 January 2009 15:07
To: cf-talk
Subject: Re: cftoken lost between servers

You might need to turn off setClientCookies and set them manually with
cfcookie tags.  I've had a similar issue before where when you jump to
another server while passing in your own cfid and cftoken, it works for
the first request but then the new server hands back NEW cfid/cftoken
values and your old session is lost.

-Ryan

Paolo Piponi wrote:
> It's been about 4 years since I've been on one of these lists, so here goes:
>
> We've been using client variables quite successfully for some years now in a 
> load-balanced environment with a database client variable storage. This has 
> continued to CF8.
>
> Although tests made a few months back proved that client variables were 
> holding up across servers, recently I made another check and found them 
> changing. For the test we forced our load-balancer to point from one single 
> server to another (thus forcing the browser to - unknowingly - swap servers) 
> but their session is lost. In short, the CFTOKEN changed. When we swapped the 
> servers again the CFTOKEN changed again. Although JSessionID persists (with a 
> different value) on each server, CFTOKEN is created from scratch on each 
> server change and never recurs.
>
> We did recently turn on session management and I'm suspicious this be the 
> cause but would like to hear some opinions before I have to spend much more 
> time replicating the problem in different environments or risking tests in 
> production.
>
> Many thanks,
>
> Paolo
>
>





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317857
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to