<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



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280435
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