In yii, you can quickly and easily create a cookie with a value. Example:
$cookie = new CHttpCookie('users',$model->id); Yii::app()->request->cookies['users']=$cookie; The question is: if I need to store, for example, in the user id cookie, then how to organize it correctly? Logic suggests that the value of a cookie should be something like this "12, 23, 44, 11, 123". If so, how to make such a string and bind it to the value of this cookie?