I am a new to ColdFusion. I have Application.cfm and would like to add an onRequestStart function, but it is not working. By not working I mean, when a page calls some application variables (that were set inside `onRequestStart) an error is generated because those variable don't exist.
I can't use Application.cfc. Is there a solution or another way to use onRequestStart with Applciation.cfm?
So I'm not really sure what your trying to do with the Application.cfm, but like Ageax said, the Application.cfm runs on every request ( whatever workflow you had in mind for the onRequestStart() function you can just do in the Application.cfm)
If you really want an onRequestStart function in Application.cfm you can make your own function and explicitly call it after like this
Application.cfm
This question and article might be an intresting read for you if your not forced to use an Application.cfm
ColdFusion: Are there any use cases where an Application.cfm is preferable to an Application.cfc
Migrating from Application.cfm to Application.cfc