Are you diligently using the var scope in CFC methods?  This is generally
more of a problem with CFCs in the application scope, but I suppose it could
affect pretty much any persistent storage.


I've taken to beginning all of my method with "<cfset var local =
StructNew()>" and placing all variables in this quasi local scope.  Makes
things hella easier.


Jim Davis


  _____  

From: Jon Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, January 23, 2004 3:57 PM
To: CF-Talk
Subject: CFC's in the Session scope


Heya all,

I've scoured the list for answer's, but it seems no one has come across this
problem--or at least posted about it. I have a CFC in the Session scope.
There is a weird thing that is happening quite frequently:

UserA is using a "customer" Session CFC wiht ID=1
UserB is using a "customer" Session CFC with ID=2

Suddenly UserB is working with UserA's object (i.e., it has an id=1)?

Arrrgh. Has anyone seen this?

Best,

js
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to