ALSO:

Client variables are the only way to go when you are in a clustered
environment.

Client variables are stored in a central database and can be accessed from
multiple machines, while a session variable would be lost if a shared server
architecture controls the user traffic on multiple servers.

www.hemmings.com runs on a cluster of servers and through many of the
processes the user is sent to anyone of the servers in the cluster and the
users persistent information is stored in the database so it will be
accessible no matter which server they are on.

- BILL -

-----Original Message-----
From: Kinley Pon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 5:38 PM
To: CF-Talk
Subject: Re: Session and Client Variables


sounds about right! - Kinley


>From: "Gyrus" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: Re: Session and Client Variables
>Date: Wed, 14 Nov 2001 18:26:41 -0000
>
> > Hi Folks, i'm prepping for the cf exam and i'm lacking a good
>understanding
> > of the difference between client and session variables. It seems that
>they
> > both are capable of doing the same thing. When and why should/would i
>use
> > one or the other? What apps have you used client vars for and not
>session
> > vars for and visa versa and why? Thanks for any help.
>
>As I understand it, the key difference is that session variables
>timeout. Client variables are tied to a specific client, session variables
>are tied to a specific client *and last for a specific period of time after
>the last request from that client to a specific application*. This
>timeout period is controlled in CF Admin, or in the CFAPPLICATION
>tag in application.cfm.
>
>I use session variables mostly for password-protected areas (usually
>backend CMS's) that need the finite login time for security reasons.
>I never really used client variables. I suppose I could provide the
>option to "remember me next time" when users login, and this is a
>good example of the difference I suppose:
>
>- Normal login = session variables, and if you leave the app for
>20 mins (or whatever), you will have to login again.
>
>- "Remember me" login = client variables, and as long as the connected
>cookies remain on the client, you won't have to login to get into
>the app.
>
>hth,
>
>- Gyrus
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
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