How about a method in all your CFCs called 'copy' (perhaps in a generic base
cfc that they all inherit from):

<cffunction name="copy" access="public">
<cfreturn this>
</cffunction>

I'm quite sure that doesn't return a pointer (no time to test the theory but
I'm sure someone could verify that).

Regards,

Dominic


On 29/10/2007, Ryan Heldt <[EMAIL PROTECTED]> wrote:
>
> Greetings all-
>
> I realize this topic may have been covered on this list a while back, but
> I'm having problems locating a good answer, so here goes. Typically in our
> administrative web sites, on a request, we copy over our session variables
> to the request scope so we can have read-access to the information without
> having to place locks all over the place. Now that we're doing more OO
> stuff, I would like the ability to persist an object in the session scope
> while a user is signed in, and then copy it over to request for the same
> purpose. As you know, <cfset session.object = request.object /> only
> creates
> a pointer to original, and duplicate() doesn't work on CFCs (we're using
> CFMX 7). Anyone have a workaround or best-practice solution for this type
> of
> thing?
>
> --
> Ryan Heldt
> Senior Web Developer
> Global Reach Internet Productions
> http://www.globalreach.com
> Phone: 515-296-0792, Fax: 515-296-3748
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292248
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to