yii2 get cookie
To retrieve a cookie in Yii or Yii2, you can use the following code:
$cookie = Yii::$app->request->cookies->get('cookieName');
Replace 'cookieName' with the name of the cookie you want to retrieve. This code will return the value of the cookie, or null if it doesn't exist.