I think the only way to make this happen is by calling a page.  I suggest
something like this

In application.cfm

<cfif not isDefined("server.somavar")>

        <cfinclude template="/shared/setServerVars.cfm">
</cfif>

You can put this in every application's application.cfm and this way it will
run anytime any page gets run. 

Russ

> -----Original Message-----
> From: Phill B [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 07, 2007 5:44 PM
> To: CF-Talk
> Subject: Re: Set server var at startup?
> 
> I was going to try that but I have 15+ sites running on the server and
> growing. I would rather it be some place by its self that wont require
> some one calling a page to get it set.
> 
> On 6/7/07, Brad Wood <[EMAIL PROTECTED]> wrote:
> > <cfif not structkeyexists(server,"servervar")>
> >         <cfset server.servervar = "myvalue">
> > </cfif>
> >
> > Place that in your root application.cfm and it will get run the first
> > page load.
> >
> > ~Brad
> >
> > -----Original Message-----
> > From: Phill B [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, June 07, 2007 4:32 PM
> > To: CF-Talk
> > Subject: Set server var at startup?
> >
> > How can I set a server var when Coldfusion starts? I need the var to
> > be available to all the sites on the server and would like it to be
> > set when the server starts.
> >
> > --
> > Phil
> >
> >
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280437
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to