##### 0.背景

yii\web\Request::cookieValidationKey must be configured with a secret key.

##### 1.解决办法

        'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
],