mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 11:32:40 +00:00
Deprecating SessionComponent::del() unifying delete methods to 'delete'
This commit is contained in:
parent
934bda0a74
commit
5e8eb83f7d
1 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue