On 12/3/06, Doug Brown <[EMAIL PROTECTED]> wrote: > The session scope is a memory variable as you know, and therefore affects > the whole system, and any other applications that are running on that > system.
Nowadays (post CFMX) this is only true in the sense that a memory variable eats a finite resource due to its existence, which is unavoidable and in fact desirable.. > When you use an exclusive lock, you are infact tying up that small > portion of system ram until which time that lock releases and obtains > another lock. When you duplicate an entire scope -- assumedly in application.cfm -- you are placing a burden on resources. When you read any variable, you are placing a burden on resources. While you can argue that a cflock+var read is more resource-intensive than just a var read, the dubious benefit gained, if any, is offset by having to duplicate your scope in every application.cfm hit. I would further argue that since the rest of the CF coding world hasn't heard of this supposed limitation that such a lack is telling on the validity of the claim... Frankly this sounds like advice from back in the CF 4.x days when there were far greater issues involved with session vars and duplicate()-to-a-non-shared-scope was a valid fix; although using the request scope made a lot more sense IIRC. But one thing that hasn't been touched on here is that the thread title is about session vars inside of a custom tag. It can (and should, in my view) be argued that there should be no use of session vars inside of custom tags. All vars should be passed in as parameters and referenced via the attributes scope. -- [EMAIL PROTECTED] Janitor, MSB Web Systems mysecretbase.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262665 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

