I realize this is a bit of a newb question, but I am trying to get my head
around application variables.  I come from a PHP background where I am used
to setting configurations files, etc, which is similar to application vars,
but not quite the same.

Here's the problem I am trying to overcome.  I have several applications
that will be reused on multiple domains.  Each of these applications have
certain configuration that I want to set based on the domain that they are
sitting on.  For instance, (real bad example probably) on one of my Europe
domains I might want to set the time notation than I do in my US domains.  I
also might be looking at a different DSN, etc, so on and so forth.  In PHP,
I would just create a configuration based on the site, load that in, and
presto, have my vars available.  I am a believer in using the tools
available and not trying to rewrite the language to suit my needs, but
rather try to rewrite my applications based on the language.

In ColdFusion, we have application vars, which to me seem to me to be very
similar if not better.  However, what I don't quite understand is the
persistance of these vars.  Are they by domain?  Are they server wide?  I am
pretty sure by my reading that are based on the application name, but then
again, I have a short attention span so forgive me in advance if I am
incorrect.  I am sure that I would need to condition the vars based on
domain, or various other conditions, but will these vars overwrite one
another when the application is loaded on two separate domains, or are they
separate instances?

Thanks in advance!

jc


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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

Reply via email to