The thing is - application won't store a cookie if it has an 'expire' property set.
The code i'm workin' on is quite simple and yet - not working. Is it some kind of Yii bug?
$cName = '1_2vf'; $valueSet = 'test'; $cookieSet=new CHttpCookie($cName,$valueSet); $a=intval($this->determineCookieLifetime()); // returns valid future timestamp, but anyway - "$a=time();" doesn't work either $cookieSet->expire = $a; Yii::app()->request->cookies[$cName]=$cookieSet; exit;
That piece of code won't send any cookies to client browser, but it it works just fine if no 'expire' property is set - but this is not something i can bear with because cookie will be gone as soon as browser session is closed.
Help me, please!