Cookie management in Yii

Comparing #12 with #13

Revision #13 was created by Suralc Suralc on Aug 2, 2012, 7:48:30 AM.

Preperation for 1.1.12, again

Content

[...]
See also "Safe reading" in the next chapter.

### Writing a cookie

There are multiple ways to write a cookie:
 
 
Notice, that you have to specify the name twice, if you want to use this:

```php
Yii::app()->request->cookies['cookie_name'] = new CHttpCookie('cookie_name', $value);
```
See also "Reload required" in the next chapter.
[...]