/** * Used to destroy sessions * * In your controller: $this->Session->destroy(); * * @return void * @access public * @link http://book.cakephp.org/view/1317/destroy */ public function destroy() { if ($this->__active === true) { $this->__start(); parent::destroy(); } }