From 5e8eb83f7d34c0e10d3afb200c89da9a9343d41d Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 27 Aug 2009 00:31:57 -0400 Subject: [PATCH] Deprecating SessionComponent::del() unifying delete methods to 'delete' --- cake/libs/controller/components/session.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/cake/libs/controller/components/session.php b/cake/libs/controller/components/session.php index 4fc2ebba7..515d871c2 100644 --- a/cake/libs/controller/components/session.php +++ b/cake/libs/controller/components/session.php @@ -167,13 +167,7 @@ class SessionComponent extends CakeSession { } /** - * Used to delete a session variable. - * - * In your controller: $this->Session->del('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 + * @deprecated use delete */ function del($name) { if ($this->__active === true) { @@ -195,7 +189,7 @@ class SessionComponent extends CakeSession { function delete($name) { if ($this->__active === true) { $this->__start(); - return $this->del($name); + return parent::del($name); } return false; }