I often use the #CGI.SERVER_NAME# variable to segment off otherwise
identical apps by their domain.  IE:

<CFAPPLICATION NAME="applicationname_#CGI.SERVER_NAME#"
SESSIONMANAGEMENT="Yes"
SESSIONTIMEOUT=#CreateTimeSpan(0,1,0,0)#>

If they are on the same domain, you could use some other differing variable
such as #CGI.PATH_INFO#.  IE:

<CFAPPLICATION NAME="applicationname_#ListFirst(CGI.PATH_INFO, '/')#"
SESSIONMANAGEMENT="Yes"
SESSIONTIMEOUT=#CreateTimeSpan(0,1,0,0)#>

-Cameron

--------------------
Cameron Childress
ElliptIQ Inc.
p.770.460.7277.232
f.770.460.0963

> -----Original Message-----
> From: Ricardo Villalobos [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 12, 2000 10:06 AM
> To: CF-Server
> Subject: Two instances of the same application on the same server
>
>
> Hi!
>
> I have an application that uses application variables. Everything works
> fine, except when you install the same application on the same server. I
> know that one way to distinguish the application is by changing the
> attribute "name" in the cfapplication tag. Any ideas on how to dynamically
> change this parameter? My current cfapplication tag looks like this:
>
> <CFAPPLICATION NAME="applicationname"
> SESSIONMANAGEMENT="Yes"
> SESSIONTIMEOUT=#CreateTimeSpan(0,1,0,0)#>
>
> Looking forward to read some opinions...
>
> Thanks!
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to