title: How to remove cookies from specific pages in joomla 3?
body: <p>I want to remove all active cookies from a menu item of my joomla site. </p>
  
  <p>This is what I have tried so far. But its not working. Please advice.</p>
  
  <pre><code>    $menu = &amp;JSite::getMenu()-&gt;getActive()-&gt;id ;
  if (($menu ==160 )OR ($menu ==162)){
       setcookie("4fac4a40aea2f01167c39f90e7f86b74", '', time()-1000);
      setcookie("3ba91267df8ad1212d2c1e507c7cf988", '', time()-1000);
  }
      ?&gt;
  </code></pre>
  
  <p>I want to delete two cookies if a active menu id is 160 or 162 (not menu item id).</p>