Actually no, it seems that your $_SESSION
is not initialised.
Looking at Cakephp4 debug before write session - #9 by gludie try setting these Cookie Settings in your config/app_local.php
'Session' => [
'defaults' => 'php',
'ini' => [
'session.cookie_secure' => false
]
],