I am not able to login due to the session problem in CakePHP 4.
the session is not created so how can fix it.
i have change already ,
‘Session’ => [
'defaults' => 'database', //php and database ],
$this->Auth->setUser($user);// this is not working on production
return $this->redirect([‘action’ => ‘dataCollections’]);