Hire Me! I'm currently looking for my next role in developer relations and advocacy. If you've got an open role and think I'd be a fit, please reach out. You can also find me on LinkedIn.

Here is an interesting error...

<cfset session.y = structNew()>
<cfset session.y.z = "foo">
<cfoutput>#session.y.zz#</cfoutput>

You would expect to get an error saying zz did not exist in y, and you would if you were using another top level structure beside session. However, when you run this code, you get:

"Element Y is undefined in SESSION. "

Obviously that isn't the case. So, if you see this error, be aware it may actually be talking about a lower level structure. As I said, I did NOT see this in a 'simple' structure, so I'm guessing something about Session's special nature causes the incorrect error. I just did a test and the same thing happens with Application and Server.