Although copying stuff from shared scope variables into the request scope
and back again was pretty common practice to try and minimise the amount of
locking required on older apps, be aware that when you do the following.


<cfset request.alex=session.alex>


that it doesnt actually create a copy rather an in memory pointer to the
original, so as such with older cf4.5 and 5 applications when there where
problems with accessing shared scopes you could still experience problems
with this technique. If you are going to copy stuff from the session scope
and especially if youre looping through the whole collection as some code
posted was then if they're structures make sure you use the duplicate
function, as the structcopy function also does a shallow copy rather than a
deep one.

Worth mentioning i thought ;-)

Alex




-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to