> 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

I'm not sure what you mean exactly by passing session.user.ident explicitly,
but I assume that you mean something like this:

<cfset myval = Server.mycfc.mymethod(Session.user.ident)>

That would be strongly preferable to referencing the Session scope directly
within your CFC instance, since doing so tightly couples your component to
its caller.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:284274
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to