> -----Original Message-----
> From: Deanna Schneider [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 04, 2005 8:11 AM
> To: CF-Talk
> Subject: Re: Well - I feel like an idiot.
> 
> >  For example
> > it instantiates a session cache which is stowed in the application
> scope.
> >
> Huh? But, you're using conditional logic to NOT RUN the intitialization of
> the app once it's been run. So - everyone is going to use the first
> person's
> session. That doesn't make sense, either. Am I misunderstanding what
> you're
> saying?

Either that or I'm not saying what I mean (which is probably more likely).

Only the session cache is created in that block, not the session instance.
See - doesn't THAT make more sense?  ;^)

One of the first things the protected block does is instantiate an
"Application" CFC and place it in the shared Application scope.  A property
of that object is "Sessions" (another CFC acting as a cache manager
collection for session objects.

Since this object is created during this time a second run through the init
process would eliminate the first one and create an empty new one.

However OUTSIDE the initialization block (outside the lock) a custom
"Session" CFC is instantiate and a reference to it is placed in the
application-scoped session cache previously created.

In other words the initialization of the Application (including the
container for all session objects) is run only once for the whole
application, but the initialization of the Session is run for each user.

There's a lot more to the code, of course, but that the crux of the
session-related instantiations.

Jim Davis



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
This list and all House of Fusion resources hosted by CFHosting.com. The place 
for dependable ColdFusion Hosting.
http://www.houseoffusion.com/banners/view.cfm?bannerid=11

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189242
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to