sas*_*sas 3 php cookies session session-cookies yii2
我们的配置类似于/var/www/app1和/var/www/app2,两者都在单个会话中登录。我怎样才能让这个不同的会议。
我尝试使用 yii2 wiki 中的以下解决方案。但在这里不起作用。
'identityCookie' => [
'name' => '_backendUser', // unique for backend
'path'=>'/advanced/backend/web' // correct path for the backend app.
]
Run Code Online (Sandbox Code Playgroud)
请给出这个问题的解决方案。
为每个应用程序使用不同的会话$name。这可以在您的配置中设置为:
'components' => [
'session' => [
'class' => '\yii\web\Session',
'name' => 'mycustomname',
Run Code Online (Sandbox Code Playgroud)