Can't access values in 'this' structure
-thanksok, this is really strange....
hers's my application.cfc
<cfcomponent>
<cfscript>
this.name = "wg234rf6u";
this.applicationTimeout = createTimeSpan(0,2,0,0);
this.clientmanagement= "yes";
this.loginstorage = "session" ;
this.sessionmanagement = "yes";
this.sessiontimeout = createTimeSpan(0,0,20,0);
this.setClientCookies = "yes";
this.setDomainCookies = "yes";
this.scriptProtect = "all";
this.mappings["/MenuPath"] = getDirectoryFromPath(getCurrentTemplatePath())&'Assets/XHTML/';</cfscript>
<cffunction name="onApplicationStart" output="false" >
<cfscript>
application.dsn = "_mydsn_";
application.url = "_myurl_";
</cfscript>
</cffunction>
<cffunction name="onSessionStart" output="false" >
<cfparam name="session.validation_errors" default="" />
<cfparam name="session.message" default="" />
<cfparam name="session.start" default="true" />
<cfinclude template="./Assets/XHTML/functions.cfm" />
<cfset #setSessionFormDefaults()# />
</cffunction>
<cffunction name="onrequestend" output="true" >
<cfdump var="#this#" />
</cffunction>
</cfcomponent>
I CAN dump the 'this' structure in the application.cfm and ONLY the application.cfm, no other file, not even if I were to put a file containing:
<cfouptut>
<cfdump var="#this#" />
</cfoutput>
right besides application.cfc, I get a "Variable THIS is undefined."error....
- this works on 3 other sites on the same server
- I have restarted both apache & CFMX
- there are no other cfm files in the site, just the application and my test file [so the "this" structure is not being overwritten]
- I can dump any other variable scope
ANY one have any ideas what the heck is going on here????
-thanks
-sean
