As with any variable, it's really a case-by-case basis.

Will all users of the app have frequent need for this variable/CFC?
Application scope.
Will all users of the app have frequent need for this variable/CFC
specifically for them?  Session scope.
Will you just use it every so often?  Instantiate it as needed.

On 8/1/07, Chad Gray <[EMAIL PROTECTED]> wrote:
>
> Is there a best practice when creating an object?
>
> Do you store your objects in the session or application scope so you can
> use it through out the application?  Or do you create your objects only when
> you need to?
>
> I suppose it is a case by case decision.
>
> Is there an application out there that uses CFCs really well and I should
> look at how that application is written?
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285069
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to