I agree, this seems to be a hazy area. I tend to use client vars even if it
isn't a clustered environment. IMO I think that the only disadvantage of
Client vars is you can't expire them as easy as you can with sesison vars,
you have to go to the DB and clear the entry. However the fact that you can
let the db handle locking by using client vars is a godsend!...I find it an
absolute pain having to lock every time I read or write to a session var.
>From what Dave said earlier it seems that it is quicker to use Session Vars
via server RAM rather than client vars via a db providing you have enough
server RAM. I guess it's a trade off - the more session vars you need to
store (no of session vars you declare * number of active sessions) then the
more there is a case to move to client vars. Either that or upgrade your
server ram!
------------------------------------------------------------------
Andrew Ewings
Project Manager
Thoughtbubble Ltd
http://www.thoughtbubble.net
------------------------------------------------------------------
United Kingdom
http://www.thoughtbubble.co.uk/
Tel: +44 (0) 20 7387 8890
------------------------------------------------------------------
New Zealand
http://www.thoughtbubble.co.nz/
Tel: +64 (0) 9 488 9131
------------------------------------------------------------------
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890.
-----Original Message-----
From: Mark Smyth [mailto:[EMAIL PROTECTED]]
Sent: 23 April 2001 17:57
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists