Also you can set up the loadbalancer to do sticky sessions (You can do this
in coldfusion as well).  This won't prevent people from losing their session
if one of the servers fails, but it will send them to the same server as
long as both servers are up. 

Russ

> -----Original Message-----
> From: Tony Hicks [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 01, 2006 9:11 PM
> To: CF-Talk
> Subject: Load Balancing issues
> 
> I had an application that worked very well on one server, but growth
> required we move to a larger server arrangement with two web servers.
> 
> Of course the servers couldn't share memory so session variables no longer
> really worked. I implemented client variables and the scope
> request.session.
> 
> As I understand it.. all that is required for this to work is at the
> beginning of the application, I should create request.session scope and
> load it with data from the client.session scope via WDDX.
> 
> >From that point, I can read client.session with no need for scoping.
> 
> At the end of the page request, I need to copy the contents of
> request.session to client.session via WDDX.
> 
> CFLOCATION can also throw a kink in it.. so I created <cf_location> which
> works identically but before the relocation, it copies from
> request.session to client.session via wddx..
> 
> The site works perfectly, except when the load balancer presents a
> different server. The user is logged out and loses all session data.
> 
> Oh, my application uses "site_storage" (a dsn) as a client store and it on
> an SSL connection. (A secure cert for each server).
> 
> What am I missing?
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231072
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to