add different session for backend and frontend
This commit is contained in:
parent
ed9c1e77cd
commit
5cb37861c5
@ -16,7 +16,15 @@ return [
|
||||
'user' => [
|
||||
'identityClass' => 'common\models\User',
|
||||
'enableAutoLogin' => true,
|
||||
'identityCookie' => [
|
||||
'name' => '_backendUser', // unique for backend
|
||||
'path'=>'/backend/web' // correct path for the backend app.
|
||||
]
|
||||
],
|
||||
'session' => [
|
||||
'name' => '_backendSessionId', // unique for backend
|
||||
'savePath' => __DIR__ . '/../runtime', // a temporary folder on backend
|
||||
],
|
||||
'log' => [
|
||||
'traceLevel' => YII_DEBUG ? 3 : 0,
|
||||
'targets' => [
|
||||
|
||||
@ -15,7 +15,15 @@ return [
|
||||
'user' => [
|
||||
'identityClass' => 'common\models\User',
|
||||
'enableAutoLogin' => true,
|
||||
'identityCookie' => [
|
||||
'name' => '_frontendUser', // unique for frontend
|
||||
'path'=>'/frontend/web' // correct path for the frontend app.
|
||||
]
|
||||
],
|
||||
'session' => [
|
||||
'name' => '_frontendSessionId', // unique for frontend
|
||||
'savePath' => __DIR__ . '/../runtime', // a temporary folder on frontend
|
||||
],
|
||||
'log' => [
|
||||
'traceLevel' => YII_DEBUG ? 3 : 0,
|
||||
'targets' => [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user