We've been switching all of our applications from Session to Client
variables even though most of our applications do not run in clustered
environments. We've just had too many problems with the way in which
ColdFusion handles data stored in shared resources such as memory.

Although religious use of the CFLOCK tag eliminates most of these issues, we
still experience the occasional "Cannot Synchronize Object" errors, or some
equivalently obscure and inexplicable message. Repeated posts to lists and
searches throughout the Web, Allaire Forums, and the Allaire Knowledge base
always proved fruitless.

Though client variables take more overhead (not memory but CPU, Network
Traffic, Database Resources, etc.) and complex datatypes cannot be stored in
a Client variable without first serializing the data into a WDDX structure,
these are relatively minor concerns when compared to the inevitable server
instability or just plain application unreliability brought about by Session
variables.

Of course, my opinion is a little biased. :) I've often been seen ranting on
this list about problems with Session variables and the way ColdFusion
threads handle access to data stored in shared resources. Unfortunately, it
doesn't look like ColdFusion 5 will address any of these issues. So unless
we hear different, we will continue to change all of our application from
Session variables to Client variables.

Benjamin S. Rogers
Web Developer, c4.net
Voice: (508) 240-0051
Fax: (508) 240-0057


-----Original Message-----
From: Mark Smyth [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 12:57 PM
To: CF-Talk
Subject: re: session vs client


hi

They appears to be differing opinions to this? I have heard many people
recommend the use of client variables over session variables, regardless of
whether they are hosted in a clustered envoironment.

Are there specific times when session variables are better to use than
client variables, and visa versa?

I'm fairly new to coldfusion and this is a subject which confuses most new
comers

Regards

Mark

Mark Smyth
Developer
Systems Union eBusiness Solutions
01865 880800
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
www.systemsunion.com <http://www.systemsunion.com/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to