I occasionally get a cflock error when running an application
in the morning. I moved several cfobject lines into the
application.cfc onApplicationStart method. Some of the methods in
the objects use cflock to read a session variable.
Here is the error:
Cannot lock session scope. Cannot use cflock to lock the
application or session shared scopes without these scopes being
established through the use of the cfapplication tag. To use the
session scope you need to enable session management. Application
and/or Session variables must also be enabled in the ColdFusion
Administrator. <br>The error occurred on line 5.