Jason, I answered your question, in my post I gave you a code example of what you need to do.
So the answer is yes, when writing to any scoped variable you must cflock the write. I am very sure I said that:-) On 4/13/07, Jason Dunaway <[EMAIL PROTECTED]> wrote: > > I've been out of the office for 4 days so I'm just now responding. > > Thanks to all who offered valuable feedback and input. > > I am a huge fan of OO programing. I graduated college in December 2002 > from Miami U. of Ohio. The program I studied there really focused on OO > design and use. So I've been somewhat "brainwashed", but I really believe > in it despite this. > > So when I took on the current project my employer wanted the site cleaned > up. It was a mess prior to the redesign. I chose to use components rather > then using cookies or individual session variables because I love the > structure and organization that a nice, neat "wrapped up" component > provides....and I love reusing code instead of having copies of it > everywhere. Everything is much more consistent and logical. Instantiating > them in session was a natural choice since, in theory, the data should be > maintained for the user's session across all pages. The main user component > only contains DATA relevant to the user and methods that deal with this > data. I honestly don't see a huge problem with this because it's not a huge > amount of code. RAM is not really a concern to us, the machine is > adequately equipped. > > So now we're having issues with the site timing out users prematurely and > randomly. We have verified that what is causing this is that the user is > getting a NEW jsessionid from the server. What we don't know is WHY this is > happening. Responses from another post I made where that there are a number > of causes, many which are unrelated to actual code. > > What I really need to determine is if the lack of <cflock> in appropriate > places is the culprit. I see that there are pros/cons to using cfcs in > session, as have been noted in most of the responses here, but I need to pin > down what is causing it. If anyone has any helpful advice please send it my > way. If you want to scorn me for using CFCs in session scope, please keep > your comments to yourself unless you truely feel it is relevant to my > problem. > > Thanks in advance! > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275189 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

