> -----Original Message-----
> From: Scott Stewart [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 08, 2008 10:26 AM
> To: cf-community
> Subject: Judicious use of session variables, how much is too much
> 
> I've inherited an application that uses session variables all over the
> place.. I think every form variable has been moved to the session
> scope.
> I'm in the process of documenting them, and I have 67 variables
> documented so far.
> 
> My question is: How much is too much and will having this many session
> vars affect performance.
> Secondly, when others on the list build apps, what criteria do you use
> when determining when and where to use session vars?
> 
> thanks
> 
> sas
> 

Take this with a grain of salt because I haven't really 'studied' CF since
4.5 for my certification.  I have found out that my cert has since expired
too.  

I'm not sure if 67 is a lot because it depends on how large your
application is.  I read through the docs and it looks like you still need
to CFLOCK the session variables to ensure data integrity.  Personally, I
try to avoid session variables.  Basically, I use it for user-login
related functions.  Not sure if this is the best use.  

I always ask myself is there another way to do this without using session
variables but without using cookies.  I will generally submit that
solution.  I would take a look at said solution if QA submits a ticket
about system performance but that hasn't happened yet.  

I'm curious what other developers think about this.  I'm currently on a
project where these decisions are out of my hand and I have a slew of
application and session variables that I have to use.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:282370
Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5

Reply via email to