response->format = 'json'; Yii::$app->response->data = $checkLogin; return false; } $_COOKIE['admin_uid'] = LoginService::$uid; return true; } }