But can you set this.clientstorage that way? Because It seems setting that property within onRequestStart() does not work. In my requestStart method I call another method which sets a client var. If I set the this.client[(storage|Management|etc] in the onRequestStart, I get an error that the client scope is not enabled when I try to set a client var in a method called from there.
Sorry to be using client variables Nathan :( Brook -----Original Message----- From: Russ Michaels [mailto:[email protected]] Sent: August-11-11 5:45 PM To: cf-talk Subject: Re: Setting client variable datasource via config.xml I used to have this issue as well, you obviously cannot read read app vars that do not exist yet and you cannot create them until the application scope is initialised. The way I got round this is to have 2 XML files. One that contains the init variables that need to exist before the application scope is initialised, and I load these into request scope onapplicationstart. Once this is done, I then load the global config into the application scope. On Thu, Aug 11, 2011 at 11:06 PM, Brook Davies <[email protected]> wrote: > > I'm trying to set all my apps properties via a config file to make > deployment between dev, production servers easy. Problem is the > application vars that are read via onApplicationStart() are not > available within the opening part of the application.cfc and when I > try to set these properties inside onRequestStart() they do not work. > Should I be able to set these in onRequestsStart()? > > > > <cfcomponent output="false" extends="coldfireApplication"> > > > > <cfset this.clientManagement = true> > > <cfset this.setClientCookies = true> > > <cfset this.setDomainCookies = false> > > <cfset this.clientStorage = application.gs.clientVarDataSource> > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346713 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

