so - this is the answer. Cookies created by Yii with cookie validation turned on have some control sum that validates if they were not altered (or maybe it is done different way I am not sure about specific implementation). Your cookie has just plain value so it does not pass the validation process. If you want to use such cookies in Yii way - you have to turn of cookie validation…