getCookieKey() public method

public getCookieKey ( ) : string
return string
Example #1
0
 /**
  * @param string $language
  */
 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);
 }