This is a known bug. Not yet addressed in any of the updaters. A
possible solution - instead of referencing the application vars, get
them once and store them in the CFC.

ie:

<cfparam name="dsn" default="#application.dsn#">

This would copy the value of application.dsn to the local, private scope
in the cfc and do it one time only.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
Member of Team Macromedia

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Tyler Silcox [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, February 20, 2003 9:12 AM
> To: CF-Talk
> Subject: Any concerns with calling application scoped 
> variables within a session-based CFCs?
> 
> 
> Is there anything I need to know about working with 
> application scopes in session-based CFCs?  I'm get a 
> "Variable APPLICATION is undefined" error when I set a 
> session-based CFC, that includes a few references to some 
> application variables, then try to call one of the functions 
> on separate page/request.  The functions work fine if I call 
> them on the first request, when I actually creating the CFC.  
> It looks like CF isn't associating the application variables 
> within my session functions once I refresh the page or move 
> on to another page within my application...which kind of 
> makes sense, but not really.  Dare I say bug, or is this what 
> it's supposed to do?
> 
> Tyler Silcox
> email | [EMAIL PROTECTED]
> 
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to