add() public method
Adds a cookie to the collection.
If there is already a cookie with the same name in the collection, it will be removed first.
| public void add ( $cookie ) | ||
|---|---|---|
| $cookie | yii\web\Cookie |
The cookie to be added |
| throws | yii\base\InvalidCallException |
if the cookie collection is read only |
Please login to continue.