On Tue, Jan 31, 2012 at 5:01 PM, Robert Harrison <rob...@austin-williams.com> wrote: > I've got a new programmer working for me (on contract) and I'm finding he's > using session Vars all over the place. He creating session Vars on forms that > have a hundred fields, he putting arrays into session Vars, etc. I just went > through a few of the programs he wrote and used them, then I dumped my > session vars and found I had over 250 session vars from just using a few > programs. Considering the site has over 1,000 users on it at any given > moment, I'm very concerned about this practice.
Your primary concern should not be the memory usage implications of this practice, but the functional implications. What does it mean for the correctness of your application? Can you still navigate the site with multiple tabs opened if everything goes into the session scope or do you get weird results on some pages because session variables get overwritten from elsewhere? Only after you are certain the code is functionally correct memory optimizations come into play Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349682 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm