You should be able to set that variable in OnApplicationStart() with no 
problems.  In fact, as you said, that's the preferred place to set it.  
You must have something else going on that's causing the problem.

Thanks,

Eric Cobb
ECAR Technologies, LLC
http://www.ecartech.com
http://www.cfgears.com



Rick Faircloth wrote:
> Ok...I worked with application.cfc's for awhile
> and things seemed to work fine, but then I had some
> issues and went back to old reliable application.cfm.
>
> Now, however, I'd like to try again to get a grasp on
> how to use application.cfc's.
>
> First question:
>
> Why can I set the application.website variable like this:
>
> <cffunction name = "onRequestStart">
>
>       <cfset application.website = "RickFaircloth.com">
>
> </cffunction>
>
> But not like this:
>
> <cffunction name = "onApplicationStart">
>
>       <cfset application.website = "RickFaircloth.com">
>
> </cffunction>
>
> ???
>
>
> OnApplicationStart would seem to be a more logical place
> to set a global variable for an entire application than onRequestStart.
>
> Rick
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336238
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to