Question
scope of a current function
My cold fusioon 8.0 website defines alot of functions using
the CFFUNCTION tag, however because of limitations within cold
fusion, I cannot call these functions as application or session
scope variables because the server will only allow one instance of
the function running at once. Instead, I created all of my
functions and store them as application scope variables and during
each page visit,I define request scope variables off of the
application scope variables, and then call the function defined
under the request scope.
For security reasons, I am required to ensure that the application scope version of the CFFUNCTION cannot be called from anywhere within the website. Is there a way to build such a check into a CFFUNCTION to determine what scope it is currently running under so that I can deny anyone who tries to call the application scope version of each function.
For security reasons, I am required to ensure that the application scope version of the CFFUNCTION cannot be called from anywhere within the website. Is there a way to build such a check into a CFFUNCTION to determine what scope it is currently running under so that I can deny anyone who tries to call the application scope version of each function.
