grrrrrrrrr

Just change the name of the application in the application tag


<cffunction name="copyApplication">

        <cfargument name="sourceApplication" type="string" required="Yes" />
        <cfargument name="destinationApplication" type="string" required="Yes" 
/>

        <cfapplication name="#arguments.sourceApplication#" />
        <cfset source = duplicate(Application)>

        <cfapplication name="#arguments.destinationApplication#" />
        <cfset structAppend(application, source)>


</cffuntion>

<cfset
copyApplication(sourceApplication="blip",destinationApplication="blop")>





-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andrew
Scott
Sent: Thursday, March 31, 2005 11:42 AM
To: CFAussie Mailing List
Subject: [cfaussie] RE: Accessing application vars from a diff
Application.


M@,

It depends on why you want too, but you certainly can. There was a post in
cf talk last year that showed how to use undocumented features of the
factory class of cf to get sessions available from running applications, and
retrieve vars from this.

I don't have a copy of it, but it can be done via a few lines of code.

But again it would depend on why you want to do what it is your looking at,
if its to share information I would do it the way others have suggested
either in the server scope or using the database to keep a copy of this
information would be the normal way of doing it.


Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485  -  Fax: 03 9699 7976


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of M@ Bourke
Sent: Thursday, 31 March 2005 10:50 AM
To: CFAussie Mailing List
Subject: [cfaussie] Accessing application vars from a diff Application.

Hi all
If I have 2 sites (directorys) on the 1 server Blah.com/blip Blah.com/blop

Is there anyway I could access the application vars in "blip" from "blop"

Note: both have there own application.cfm.

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe
send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/




---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/



---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to