I am trying to migrate an app from cake 3.9 to 4.1. I have some code in AppController::beforeRender which checks for a session var which I write from a login page.
So