yiisoft/yii — pull request #562 by suralc (2012-03-28 16:20:10+00:00)
Title: Fixes #120 set cookie name only once

Fixes #120. This makes second parameter in add() optional but should maintain backwards compatibility.

```php
request->cookies['name'] = $cookie;
// new:
Yii::app()->request->cookies->add(new CHttpCookie('name','value'));
```