Permalink
Browse files

Deprecating SessionComponent::del() unifying delete methods to 'delete'

  • Loading branch information...
1 parent 934bda0 commit 5e8eb83f7d34c0e10d3afb200c89da9a9343d41d @markstory markstory committed Aug 27, 2009
Showing with 2 additions and 8 deletions.
  1. +2 −8 cake/libs/controller/components/session.php
@@ -167,13 +167,7 @@ function read($name = null) {
}
/**
- * 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 @@ function del($name) {
function delete($name) {
if ($this->__active === true) {
$this->__start();
- return $this->del($name);
+ return parent::del($name);
}
return false;
}

0 comments on commit 5e8eb83

Please sign in to comment.