Notice, that you have to specify the name twice, if you want to use this:
```php
[...]
```php
$cookieCollection->add(['name'] = new CHttpCookie('name', 'value', $options));
```
The option parameter is internally passed to the public method [CHttpCookie::configure()](http://www.yiiframework.com/doc/api/1.1/CHttpCookie#configure-detail "CHttpCookie::configure()") which accepts an array with the following keys: