'request' => [
'csrfParam' => '_csrf-backend',
'cookieValidationKey' => $params['cookieValidationKey'],
],
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
'identityCookie' => [
'name' => '_identity',
'httpOnly' => true,
'domain' => $params['cookieDomain'],
],
],
'session' => [
// this is the name of the session cookie used for login on the backend
'name' => '_session',
'cookieParams' => [
'domain' => $params['cookieDomain'],
'httpOnly' => true,
],
],
'request' => [
'csrfParam' => '_csrf-frontend',
'cookieValidationKey' => $params['cookieValidationKey'],
],
'user' => [
'identityClass' => 'common\models\User',
'enableAutoLogin' => true,
'identityCookie' => [
'name' => '_identity',
'httpOnly' => true,
'domain' => $params['cookieDomain'],
],
],
'session' => [
// this is the name of the session cookie used for login on the frontend
'name' => '_session',
'cookieParams' => [
'domain' => $params['cookieDomain'],
'httpOnly' => true,
],
],
Find more questions by tags Yii