如何在页面刷新或关闭浏览器窗口时销毁 cakephp cookie?
我的代码:merry_parents_controller.php
$this->Cookie->write('MerryParent.id',$this->MerryParent->id,false,0);
echo 'cookie MerryParent.id: '.$this->Cookie->read('MerryParent.id');
$this->set('id',$this->Cookie->read('MerryParent.id'));
谢谢。