ColdFusion Error: Element USER is undefined in SESSION

But I defined Session.User in the OnSessionStart method! How is this possible??

Turns out, if there’s an error in the OnApplicationStart method, then OnSessionStart will not run before your OnError method is called. And if your OnError method tries to log the Session variables it expects to be there, it will throw this error.

Live and learn.

Leave a Reply

Your email address will not be published. Required fields are marked *