Client variables last a lot longer, unless you delete them, default is 90
days. If you want information to last for a long period then client vars 
are
good.

Session are useful when you only need to keep information for a particula
r
session, CF will delete the session variable when the user closes there
browser.


-----Original Message-----
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 6 January 2002 14:11
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 session
variable
> reads/writes. That's also why you'll lose state when you end up on anot
her
> 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 which
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.  Sur
e 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? Session
> > variables are Memory resident on the server where they are created
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 Variab
le
> > Storage to the same database on each server.  The code is identical. 
 I
am
> > using Microsoft NLB.  It works well except that my session variables
> aren't
> > carrying over.  Any ideas?  I know its broad but there has to be
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to