Damien,

The way I understand it is that SESSION variables are variables you set that
reside in the application servers memory during the duration of the SESSION
that the browser is connected.

CLIENT variables are persistent to that particular browser and can "stick"
with it.  Both can be used to store values, although, I don't believe that
CLIENT variables can have structures, but I maybe wrong, I'll have to
double-check.

One of the reasons you would choose CLIENT or SESSION variables would be if
your application is going to be in a "server farm", where you have 3
ColdFusion servers all running your application and all three point to one
database server.  Since the user might connect to the first server on the
initial request, then the third server on the subsequent request, you
wouldn't have access to the SESSION variables you set as they are on the
first server.  CLIENT variables, provided they are stored in the database or
cookies (see the CF Admin for setting the storage of CLIENT variables) would
be accessible.

Yes, you could disable CLIENT variables, you don't need to use them with
SESSION variables.

-t


-----Original Message-----
From: Damien McKenna [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 23, 2004 11:34 AM
To: CF-Talk
Subject: FAQ: Client vs Session (vs Cookie) variables?

Could someone please enlighten me to the differences between client and
session variables?  I thought I understood them but apparently am missing
something with regards to ColdFusion's handling of them.
Specifically:
 
- What are the differences between Session and Client variables?
 
I hadn't realized that there were client variables as well as session and
cookie variables, I always considered client variables to be analogous to
cookies.
 
I guess my question comes down to this: if we have session variables why do
we need the client variables?  If I only use session variables in my code
can I completely disable client variables?
 
Thanks.
--
Damien McKenna - Web Developer - [EMAIL PROTECTED] The Limu
Company - http://www.thelimucompany.com/ - 407-804-1014 "Why are you wearing
that stupid man suit?" - Frank
 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185211
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to