Sean, just an aside. As critical as it is that folks use var to scope
method-level variables, I can't seem to find any real mention of this at
Macromedia.com. Shouldn't there be an article on this, or an update to
the docs that really drives home how important this is? Even going
through the livedoc section on CFCs and searching for "var" on every
page I found nothing. Might be something to point out to the doc folks.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf
> Of Sean Corfield
> Sent: Friday, September 17, 2004 12:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [CFCDev] Help with CFCs in the Shared Scope
> 
> On Tue, 14 Sep 2004 14:25:40 -0400, Alexander Sherwood
> <[EMAIL PROTECTED]> wrote:
> > Yes. The CFC in the application scope as actually a facade for the
> session scope, names SessionManager.
> 
> Sounds OK.
> 
> > SessionManager uses createObject() to create a new User object and
store
> it in the session scope.
> 
> Sounds OK.
> 
> > The problem here is that instance data from a User object in one
session
> can overwrite instance data in another session's User object!
> 
> Then you're doing something wrong. Show us the code. I'll bet you have
> a variable that isn't declared with 'var'...
> --
> Sean A Corfield -- http://www.corfield.org/blog/
> 
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
> in the message of the email.
> 
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
> 
> An archive of the CFCDev list is available at www.mail-
> archive.com/[EMAIL PROTECTED]

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to