|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
cfapplication question
Hello, we are running CFMX 6.1 and for some reason I have it stuck in my head that the name attribute of the cfapplication tag has to be unique per cold fusion server instance. However, it appears that it doesnt matter. Can anyone shed some light on this? I could not find clarification in the docs. Perhaps thats the way it used to be in older versions, but not anymore?
|
|
#2
|
|||
|
|||
|
I did some additional testing and it appears that using the same cfapplication name for two applications on the same server does indeed cause problems. That is they do appear to share the same application memory space, and can potentially overwrite eachother's settings. Please correct me if I am wrong.
|
|
#3
|
|||
|
|||
|
It does need to be unique. If you use the same name as another cfapplication tag, you won't get an error but will will get very bizarre and possibly error-causing behavior as the two applications share the same application scope. The best bet is to make the application name unique by using a descriptive name and combining it with a hash of the directory path to guarantee that each has a unique name.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > cfapplication question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|