Legacy application in views

I’m trying to add a legacy app in CB. The directory structure will be:


Each app has its own Application.cfc files. However, it seems that the Application.cfc file is getting ignored, i.e. there is a code in each Application.cfc for authentication utilizing session and cfinclude where it basically checks for a session variable and if it doesn’t exist, it brings up a login page through cfinclude. This does not work at all. I can browse various templates in the directory but never get prompted for authentication. Is there something special I need to do in CB to get this working?


I would recommend to move your old Appplication.cfc code either to an interceptor or to a preHandler