Having multiple projects with the same application name can cause corrupt data and even security concerns. You tend to see this more in shared hosting environments but it can happen when you copy Application.cfm/.cfc from project to project.
You can hash() the current template path which will return you an unique identifier that can be used.
<cfset
appHash = hash
(getCurrentTemplatePath
())
/>
<cfset appName =
"myApp_" & appHash
/>
<cfset appName =
left(appName,
64)
/>
<cfapplication name
=
"#appName#" sessionmanagement
=
"true" />
The left() command in the 3rd cfset just makes sure we don't exceed the max length an application name can be. Of course you can combine the first three lines to one single line:
<cfset
appName = left
(
"myApp_"
& hash
(getCurrentTemplatePath
()),
64
)
/>
<cfapplication
name
=
"#appName#"
sessionmanagement
=
"true"
/>
+