title: Yii2 Cookies not being removed
body: <p>So I'm struggling to undertstand the concept of how cookies are managed in Yii2. I've seen some resources say to set cookies via:</p>
  
  <pre><code>Yii::$app-&gt;response-&gt;cookies-&gt;add(new Cookie([
      'name' =&gt; 'some_cookie_name',
      'value' =&gt; 'some cookie value',
      'domain' =&gt; ( YII_ENV_DEV )? '.dev.example.co.uk' : '',
      'expire' =&gt; time() + (60*60*24*30) // Expire in 30 days time
  ]));
  </code></pre>
  
  <p>That works fine, but when it comes to removing a cookie using:</p>
  
  <pre><code>Yii::$app-&gt;response-&gt;cookies-&gt;remove('some_cookie_name');
  </code></pre>
  
  <p>It doesn't work. The cookie remains in the browser.</p>
  
  <p>To confirm, there is a redirect after the removal of the cookie.</p>
  
  <p>Resource I'm looking at is: <a href="http://www.yiiframework.com/doc-2.0/guide-runtime-sessions-cookies.html#cookies" rel="nofollow">http://www.yiiframework.com/doc-2.0/guide-runtime-sessions-cookies.html#cookies</a></p>