I would, if at all possible for designs sake pass in the session data as an argument and to not use / explicitly reference the session scope within.
"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: John Skrotzki To: CF-Talk Sent: Fri Jul 20 22:45:39 2007 Subject: CFC is server scope and session calls to it... Hi! Question, I have several cfc's stored in server scope ( yes, I own server and it is for a intranet and I use vars ) that are the "guts" of my app. I have a pretty clear understanding of how things work except one situation. When a call is made to a method with arguments passed in, currently I am passing in my session.user.ident ( where I store the user identity ) explicitly. I was wondering if I am able to reference the session scope implicitly in the cfc method directly without causing erroneous user.idents references. I would assume that I would have to do a lock? What kind? Or is it better to pass in the session directly into the cfc method using the arguments? Am I making sense? lol Thanks. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284272 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

