1. 'session' => [

       // this is the name of the session cookie used for login on the frontend
       'name' => 'me_frontend_session',
    

    ], name 是替换掉php原有phpsessid会话名称,用来保存会话信息,session就是通过获取cookie会话内容,找到对应的文件,获取数据

  2. 'user' => [ 'identityClass' => 'common\models\User', 'enableAutoLogin' => true, 'identityCookie' => ['name' => '_identity-frontend-me', 'httpOnly' => true], ],

3.auth_key 作用cookie登陆,当用户勾选了remember me那么将会生成_identity-frontend-me的一个cookie,内容是经过加密的, 存的内容分别是三个

results matching ""

    No results matching ""