I'm looking forward to replicated sessions on CFMX with J2EE...and hope they properly add the capability in Enterprise.
As for client variables I still use them in some instances....as to whether there's a DB hit on every page...it may only happen when client values change. I remember doing a crude test a while back...had traces running on my SQL2K server...CF wasn't hitting the DB on every page load...appeared to be only when I was setting new values. Stace -----Original Message----- From: Dave Watts [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 14, 2002 5:13 PM To: CF-Talk Subject: RE: For the gurus: Question about state management with CLIENT sc ope > > The Client scope isn't really intended to behave the > > same way as the Session scope - it's intended more > > for long-term user data storage, rather than storing > > data during an individual visit. > > It's intent is one thing. It's practicality is another. > > I never use session scope to maintain state. I use client > scope and store client variables in a database. I let the > database worry about what it is good at - locking, so I > don't have to worry about it. While this may ease your coding, especially with versions prior to CFMX, I would disagree with your implication that it's not practical to use the Session scope. It's pretty expensive to add a database query to every page, which is what you're doing when you use the Client scope. Storing short-term data in memory is much, much cheaper, and perfectly safe if you write your code correctly. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm