On 9/29/00, Rif Kiamil penned:
>Dear All, What is the different between Client & Session variables?
>
>From Rif

Dear Rif.

They pretty much accomplish the same thing. Client variables are 
unique to each client, may be stored in cookies (if they are turned 
on), the registry (bad bad idea), or a database (best method). They 
will persist across sessions (if the server reboots, you don't lose 
the stuff in your shopping cart, etc.) and across servers in a 
clustered environment.

Session variables are the same thing, unique to each client, but are 
stored in RAM. No good across servers or if the server crashes. There 
is a whole cflock debacle with session and application variables 
(which are similar to session variables in the way they are stored, 
but are available to everyone using the application). I still haven't 
figured that one out, so the easiest thing for me was to swear off 
session variables for good. The upside is, now everything I build 
will work in a clustered environment.

Use client variables, written to a database, whenever possible.
-- 

Bud Schneehagen - Tropical Web Creations

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
ColdFusion Solutions / eCommerce Development
[EMAIL PROTECTED]
http://www.twcreations.com/
954.721.3452
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to