At 09:05 AM 2/2/2004, you wrote:
If I have a cfc that is stored in the application scope, and that cfc has a function that creates structure  with a statement <cfset var myStruct=structnew()>.  The returned structure is stored in the session scope. Will I have any issues with this set up? 

 The set-up sounds fine to me; however we are speaking at a very high level.  I assume the cfc does more than simply create and return a structure. 

 I assume the cfc function is something like this:

<cffunction name="CreateStruct" returntype="struct">
 <cfset var myStruct = structNew()>
 <cfset MyStruct.Foo = "Foo1">
 <cfset MyStruct.Foo2 = "Foo2">
 <cfreturn MyStruct>
</cffunction>


 And the code that calls it is something like this:

<cfscript>
  Application.MyCreateStructCFC = CreateObject();
  session.MyStruct = Application.MyCreateStructCFC.CreateStruct();
</cfscript>


Will that session structure be unrelated to the application cfc?

 The CFC in the application scope created the session structure, but otherwise I don't see them related in any way.

--
Jeffry Houser, Web Developer <mailto:[EMAIL PROTECTED]>
Aaron Skye, Guitarist / Songwriter <mailto:[EMAIL PROTECTED]>
--
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Books: <http://www.instantcoldfusion.com>
Recording Music: <http://www.fcfstudios.com>
Original Energetic Acoustic Rock: <http://www.farcryfly.com>

Reply via email to