Since Session variables reside in memory on each individual server, they
can't be shared across a cluster.  What you'll need to do is use client
variables instead and store them in a shared datasource.  This way all the
servers have access to the same information.  On a side note, I can't
remember if client variables can store complex datatypes like arrays or
structures or whether you will have to convert these to WDDX first...
Perhaps someone else on the list could elaborate on this!  If you are
storing simple data types then there are no problems.

HTH,

Jeff Garza

-----Original Message-----
From: S R
To: CF-Talk
Sent: 3/14/02 6:28 PM
Subject: session variables and multiple servers

We just changed our website from one being on one server to being on 3 
redundant web servers. The problem is, the web farm switches from server
to 
server every 15 minutes to whichever server has the least traffic, which

causes me and any other user to have to re-login to password protected
areas 
on the site every 15 minutes.

How can I make session variables span across all three servers? Or
should I 
look into other solutions?

Thank

sal
______________________________________________________________________
Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to