protected function setLanguage($language)
{
Yii::app()->getUser()->setState($this->lm->getCookieKey(), $language);
Yii::app()->getRequest()->cookies[$this->lm->getCookieKey()] = new CHttpCookie($this->lm->getCookieKey(), $language);
Yii::app()->setLanguage($language);
}