Don't call application.cfm or onrequestend.cfm directly. That's it. No
magic bullet. It's the only thing you can do.
|-----Original Message-----
|From: Erki Esken [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, June 14, 2001 5:22 PM
|To: CF-Talk
|Subject: Calling Application.cfm/OnRequestEnd.cfm directly
|
|
|Is there a way to disable error messages that are thrown when
|Application.cfm or OnRequestEnd.cfm are called directly ending
|up in and
|clogging ColdFusion's application.log?
|
|Example from application.log:
|----------
|"Error","TID=1852","06/14/01","23:16:09","127.0.0.1","Mozilla/4.0
|(compatible; MSIE 5.5; Windows NT 5.0)","Invalid Request of
|<B>APPLICATION.CFM</B> or <B>ONREQUESTEND.CFM</B> File<P> You have
|requested a template with the name APPLICATION.CFM or ONREQUESTEND.CFM.
|These file names are reserved by the ColdFusion engine for the
|specification of application level settings and therefore cannot be
|directly requested from a web client.<P>If you are creating a template
|which is intended for direct access by end users you should use a name
|other than APPLICATION.CFM or ONREQUESTEND.CFM.<P>"
|
|----------
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists