title: How to delete COOKIE in YII which is set in codeigniter
body: <p>i//Setting cookie in codeigniter
    In codeigniter:</p>
  
  <pre><code>    $this-&gt;load-&gt;helper('cookie');     
      $cookie = array(
                  'name'   =&gt; 'social',
                  'value'  =&gt; 'logout',
                  'expire' =&gt;  86500,
                  'secure' =&gt; false
              );
     $this-&gt;input-&gt;set_cookie($cookie); 
  </code></pre>
  
  <p>In YII:</p>
  
  <pre><code>  if(isset($_COOKIE['social'])&amp;&amp;$_COOKIE['social']=='logout'){
    //Clearing cookie in yii
          Yii::app()-&gt;request-&gt;cookies-&gt;clear();
          Yii::app()-&gt;user-&gt;logout();         
    }
  </code></pre>