Setting THIS-scope in the onApplicationStart
Having an issue that doesn't make sense to my understanding of how CF (10) works. My app is as dynamic as I can make it. Right now, there are no <cfset THIS.applicationTimeout> (or any other application variable) existing outside the application.cfc's methods.
What I do is run code outside those methods that checks if the application exists. If so, it iterates through an APPLICATION variable and, per request, sets those THIS-scope variables. But on the initial startup, this exact same function is done in the onApplicationStart() method. It iterates through and creates the THIS.<application_variable_name> = <value> declarations.
After doing it, I even immediately dumped THIS and saw things like "SessionManagement" = "true" (usually defaults to 'NO').
Yet I'm getting issues down in the onSessionStart which state that I have not enabled by SESSION scope (I checked the CF ACP and Session Variables ARE enabled). So is there some kind of logic I'm failing to see here why this isn't working?
I'm half-expecting that CF would have to say 'YES' when dumping the THIS.sessionManagement variable...
