/** * Wrapper for SessionComponent::del(); * * In your controller: $this->Session->delete('Controller.sessKey'); * * @param string $name the name of the session key you want to delete * @return boolean true is session variable is set and can be deleted, false is variable was not set. * @access public * @link http://book.cakephp.org/view/1316/delete */ public function delete($name) { if ($this->__active === true) { $this->__start(); return parent::delete($name); } return false; }