StructCopy(form) will not hold?
I am porting an application from CF5 to CF7 and in the app I have working code that copies the the contents of a form to a session variable so that I can use the information throughout the rest of the app.
<cfset session.stCustomerData = structCopy(form)>
This works great in CF5 and on the forms landing page the data is populated. But as soon as I leave the landing page (Link or Form Submit) the stCustomerData struct is missing from the session? ONLY the stCustomerData data?
If I loop through the form keys, it works.
<cfloop list="#StructKeyList(form)#" index="i">
<cfset SetVariable("session.stCustomerData.#i#", evaluate("form." & i))>
</cfloop>
I really don't want to scrube through 10 years woth of code to find all these! Any ideas?
