Create an Application.cfm – Always

Application.cfm file is a special ColdFusion file – if present it is automatically included and processed with every requested page. ColdFusion applications do not need this file, but you should always create one in your application’s root directory even if you don’t intend to use it. Why? Because ColdFusion looks for the Application.cfm file by walking up the directory tree until it finds one, any one, even in directories above your application root. If you don’t create an Application.cfm file you run the risk of including some other Application.cfm file (either right away, or some day when one is created or moved there). So, to prevent the possible inclusion of code that is not yours, always create an Application.cfm file – whether you need it or not. (Applies to: ColdFusion 3 (or later))

Leave a Reply