On 4/13/05, Mark Kecko <[EMAIL PROTECTED]> wrote: > confused about is if I have to initialize the CFC for each user or only > once for the 50 concurrent members I may have on my site at one time.
Well, it depends what your CFC does. If it is stateless (has no instance data in 'variables' scope) then you can instantiate it once, put it in 'application' scope and then just <invoke> it from there. If it has data relevant to a particular user, you could put it in 'session' scope. Otherwise you'd need to instantiate it for each request (of course you could put it in 'request' scope so you can access it across multiple files in a single request). So it's exactly the same as using any other shared scope variable. > I'm trying to avoid using the session scope. Why? -- Sean A Corfield -- http://corfield.org/ Team Fusebox -- http://fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6725 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
