yii中session存放redis中

        'session' => [
            // this is the name of the session cookie used for login on the frontend
            'name' => 'advanced-frontend',
            'class' => 'yii\redis\Session',
            'keyPrefix'=>'tuandai_union',
            'redis' => 'redis',
        ],

你可能感兴趣的:(yii2)