I've begged for this feature for the last 2 or 3 releases of CF. Basically, 
the only way to make sure something is in memory before the page is called 
is to place it in the application.cfm (all application.cfms). I usually set 
a 'SetServer.cfm' file with the following code:
<CFLOCK......>
<CFIF Not IsDefined('Server.UDFLib')>
         Set server vars
</CFIF>
</CFLOCK>
And then include it in all my application.cfms. If there was another way 
I'd love it. Maybe a site wide error handler that looks for a 'server 
variable not defined' error message, loads the server variables and then 
reloads the page that was just called.

At 11:53 AM 8/21/01, you wrote:
>I would like to store some variables in the Server scope so that they're
>available to all applications on the server. Is there an automated way
>to load a specific page when CF restarts?
>
>-mike
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to