Php Yii2更改用于划分前端和;后端用户登录不工作

Php Yii2更改用于划分前端和;后端用户登录不工作,php,session,yii2-advanced-app,Php,Session,Yii2 Advanced App,实际上,我正在尝试将会话“PHPSESSID”分别更改为“PHPFRONTSESSID”和“PHPBACKSESSID”,以划分前端和后端用户的登录。我已经在GODADDY共享主机托管了它,它以前工作得很好,但现在不工作了。它没有更改会话名称,而是对前端和后端使用相同的名称“PHPSESSID” frontend/config/main.php 'user' => [ 'identityClass' => 'common\models\User',

实际上,我正在尝试将会话“PHPSESSID”分别更改为“PHPFRONTSESSID”和“PHPBACKSESSID”,以划分前端和后端用户的登录。我已经在GODADDY共享主机托管了它,它以前工作得很好,但现在不工作了。它没有更改会话名称,而是对前端和后端使用相同的名称“PHPSESSID”

frontend/config/main.php

'user' => [
            'identityClass' => 'common\models\User',
            'enableAutoLogin' => true,
             'identityCookie' => [
                'name' => '_frontendUser', // unique for frontend
            ]
        ],
         'session' => [
            'name' => 'PHPFRONTSESSID',
            'savePath' => __DIR__ . '/../runtime', // a temporary folder on frontend

        ],

在您的配置文件中输入并检查它 Cookie后端

'identityCookie' => [
                'name' => '_backendIdentity',
                'path'=>'/admin',
                'httpOnly' => true,
            ],
'identityCookie' => [
                    'name' => '_frontendIdentity',
                    'path'=>'/', 
                    'httpOnly' => true,
                ],
'session' => [
            'name' => 'session_backend'
        ],
'session' => [
            'name' => 'session_frontend'
        ],
Cookie前端

'identityCookie' => [
                'name' => '_backendIdentity',
                'path'=>'/admin',
                'httpOnly' => true,
            ],
'identityCookie' => [
                    'name' => '_frontendIdentity',
                    'path'=>'/', 
                    'httpOnly' => true,
                ],
'session' => [
            'name' => 'session_backend'
        ],
'session' => [
            'name' => 'session_frontend'
        ],
会话后端

'identityCookie' => [
                'name' => '_backendIdentity',
                'path'=>'/admin',
                'httpOnly' => true,
            ],
'identityCookie' => [
                    'name' => '_frontendIdentity',
                    'path'=>'/', 
                    'httpOnly' => true,
                ],
'session' => [
            'name' => 'session_backend'
        ],
'session' => [
            'name' => 'session_frontend'
        ],
会话前端

'identityCookie' => [
                'name' => '_backendIdentity',
                'path'=>'/admin',
                'httpOnly' => true,
            ],
'identityCookie' => [
                    'name' => '_frontendIdentity',
                    'path'=>'/', 
                    'httpOnly' => true,
                ],
'session' => [
            'name' => 'session_backend'
        ],
'session' => [
            'name' => 'session_frontend'
        ],

谢谢你的回答,但是这个问题仍然存在。你还有别的解决办法吗。