To retrieve a cookie with the specified name:
$cookie=Yii::app()->request->cookies[$name];
$value=$cookie->value;
To send a cookie:
$cookie=new CHttpCookie($name,$value);
Yii::app()->request->cookies[$name]=$cookie;
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Δ