Cakephp4 debug before write session

Hi, had the same issue after migrating to 4.4 (and php7.4 to 8.2).
for me it was the http / https topic on local env, so I added the ini setting in app.php.

   'Session' => [
        'defaults' => 'php',
        'ini' => [
        'session.cookie_secure' => false
        ]
    ],

see also cake docs :wink: (Sessions)