I do, but it's usually frowned upon (for no logical reason). Just make sure
you check if the var exists first before adding it to avoid unnecessary
writing to the server scope, but even that is nothing to worry about as
there is no 'real' storage difference between the server, application and
session scopes (or any scope for that matter) other than how it's accessed.
> Hi,
>
> I have a CFC that I use across all applications. It's basically a global
> UDF
> library that stores no data.
>
> Is it ok to store this CFC in the SERVER scope rather than the application
> scope? Is using a named lock for this ok:
>
> <cflock name="ServerUtils" type="exclusive">
> <cfset Server.Utils=createObject('Component','SystemUtils') />
> </cflock>
>
> Cheers,
> Baz
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232877
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54