On Monday, Mar 24, 2003, at 09:30 US/Pacific, Bryan Stevenson wrote:
> Could someone explain the benefit of holding CFCs in a session var?  
> Say in
> the case of security or identifying details about a logged in user.

Instead of having, say, half a dozen separate session variables holding 
information about a user, just have a CFC user.cfc and have it keep all 
that data internally (in the unnamed scope as instance data) and 
provide methods to manipulate it. It's really about the clarity of your 
model, keeping all your user state and user admin functions together in 
a CFC.

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to