Sorry Andy, I didn't read your whole message.  It appears you already tried
this.



-----Original Message-----
From: Dave Phillips [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 18, 2008 4:21 PM
To: CF-Talk
Subject: RE: Accessing Session and Application variables from another app

Couldn't you create a CFC in your main app that will return a value of a
variable, something like this:

<cffunction name="getVar">
  <cfargument name="scope">
  <cfargument name="varname">
  <cfreturn "#arguments.scope#.#arguments.varname#" />
</cffunction>

Expose the CFC to public and use <CFINVOKE> from your 'child' app.

You could also access it with <cfhttp> if you would rather do that.

Similar to your solution below, but more secure as it doesn't just dump all
the variables - you have to know the name of it to get the value.

You might want to add some error checking in case the varname or scope
passed doesn't exist.

In your 'child' app, you could set up a process that grabs those values and
populates your application and session scope in the child app automatically
on each request.

Not pretty, but it should work.

Dave



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311230
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