Neil,

Also remember that Client variables cannot hold complex data objects 
such as
structures or arrays.  You have to convert them to xml first before s
toring
them in a database.  You can use the cfwddx tag to accomplish this.

One reason to use session variables is speed.  Under heavy load, howe
ver,
this might not be such a good idea.  Using "sticky" sessions is a
pseudo-form of load balancing where a user logs in and whatever serve
r
he/she hits is the server used for the duration of their session.  Se
ssion
variables can be used here.  Client variables, on the other hand, are
definitely the way to go with sites that get a significant amount of 
hits
and will be under heavy load -- where load balancing is a necessity a
nd
sticky sessions are out of the question.  I haven't worked on too man
y of
these sites, but in my opinion, if you want to save yourself and the
customer severe embarassment and headache, using a real load balancin
g
solution is the way to go.  Whether hardware (e.g. Cisco) or software
 (e.g.
MS NLB), you will need to use client variables to keep session data i
ntact.

Andy
> -----Original Message-----
> From: Neil H. [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 05, 2002 10:11 PM
> To: CF-Talk
> Subject: Re: Clustering and CF variables.
>
>
> That is great but how do you know where to use each of these types.
  From
> what it sounds like why not just use client variables all the time?
>
> Thanks,
>
> Neil
>
> ----- Original Message -----
> From: "Ken Wilson" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Saturday, January 05, 2002 2:47 AM
> Subject: RE: Clustering and CF variables.
>
>
> > Sure, it's painless.
> >
> > The big difference is that Session Variables are stored in Ram on
 the
> server
> > where they are created. That's why it's so critical to lock sessi
on
> variable
> > reads/writes. That's also why you'll lose state when you end up
> on another
> > server in the cluster...servers can't share their Ram.
> >
> > Client variables can be stored in your choice of Cookie,
> Registry (Nooo!)
> or
> > Database. Since you're in a clustered environment the DB storage 
would
> seem
> > perfect for you since they'll be available to you regardless of w
hich
> server
> > you hit.
> >
> > Ken
> >
> >
> >
> > -----Original Message-----
> > From: Neil H. [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, January 05, 2002 2:21 AM
> > To: CF-Talk
> > Subject: Re: Clustering and CF variables.
> >
> >
> > So you are saying I should change my variable from session to
> client.  See
> > maybe I am just dumb but I never really understood the
> difference.  Sure I
> > have seen different definitions but I never set down and
> thought about it.
> > Maybe someone has the "for dummies" version?
> >
> > Neil :)
> >
> > ----- Original Message -----
> > From: "Ken Wilson" <[EMAIL PROTECTED]>
> > To: "CF-Talk" <[EMAIL PROTECTED]>
> > Sent: Saturday, January 05, 2002 2:19 AM
> > Subject: RE: Clustering and CF variables.
> >
> >
> > > Are you talking about Session Variables or Client Variables? Se
ssion
> > > variables are Memory resident on the server where they are crea
ted
> whereas
> > > Client Variables will be stored in the central DB that you have
 setup.
> > >
> > > Ken
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Neil H. [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, January 05, 2002 12:31 AM
> > > To: CF-Talk
> > > Subject: Clustering and CF variables.
> > >
> > >
> > > I am using session variables.  I have setup a DSN and a
> Client Variable
> > > Storage to the same database on each server.  The code is
> identical.  I
> am
> > > using Microsoft NLB.  It works well except that my session vari
ables
> > aren't
> > > carrying over.  Any ideas?  I know its broad but there has to b
e
> something
> > > obvious....
> > >
> > > Neil
> > >
> > >
> >
> >
> ___________________________________________________________________
___
> 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

______________________________________________________________________
Why Share?
  Dedicated Win 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=coldfusionc
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