In general, yes. The exceptions are if you have a method specifically meant to encapsulate access session scope so that other methods in the object can get to that data (i.e. a getCurrentUser() method in a UserService), or if you create a dedicated SessionProxy object that other objects use to access data in the session scope.
On Thu, May 20, 2010 at 8:04 AM, Matthew P. Smith <[email protected]>wrote: > > Is it a bad practice to have a cfc access a session variable? Should the > session variable be passed in as an argument instead? > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333836 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

