You can basically do it two ways: have a central facade object that other objects go through, or have references to the session scope within the relevant methods in the CFCs that need access to the session scope. The topic pretty much already been extensively covered, a Google search for "sessionfacade cfc" will bring you a huge result set. I personally prefer using a central CFC, mainly for the reason that it makes testing with a mock facade easy.
On Wed, Jan 21, 2009 at 9:07 AM, aliaspooryorik <[email protected]>wrote: > > Hi cfc gurus :) > > I have a security system with a login method that stores the user id > in the session scope. As one of the rules is that objects should only > know about what is passed to them, is this considered to be an > acceptable compromise, or do you have specific objects which access > the session scope (like you have specific classes to access the > database). > > Thanks for your thoughts. > > - John > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
