I have an application.cfc in folder /wwwRoot/beta/. They have an application.cfm in the root which sets bunch of session variables. When I hit one of the pages in the beta folder to dump all the session vars, I don’t see the ones that were defined in the application.cfm.
I modified my application.cfc to get rid of all the code within ‘onSessionStart’. That didn’t help. I created a new application.cfm with a few application varibales I needed. That didn’t help either.
Does anybody have any suggestions?
<cffunction name="onSessionStart" returnType="void" output="false" hint="Fires ONLY ONCE when session first created and not when session renewed/restarted.">
<cfscript>
session.startTime = Now();
</cfscript>
<cfreturn>
</cffunction>
I guess I will need to some how copy existing session vars.
I created a simple test page on the above folder.
<cfset session.mynum= 1111>
<a href="beta/index.cfm">clicky</a>
When I click on the link, the session dump does not include myNum. Something in application.cfc is screwing things around.
Found the problem! In the application.cfc I have the following at the top:
the name of the application must be as same as the one that is being used in the tag in application.cfm. Once the name was changed, I was able to get the session vars.
thanks