mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
replace deprecated method calls.
This commit is contained in:
parent
26a4349e5a
commit
b9970f7484
1 changed files with 3 additions and 3 deletions
|
@ -678,8 +678,8 @@ class AuthComponent extends Object {
|
|||
*/
|
||||
function logout() {
|
||||
$this->__setDefaults();
|
||||
$this->Session->del($this->sessionKey);
|
||||
$this->Session->del('Auth.redirect');
|
||||
$this->Session->delete($this->sessionKey);
|
||||
$this->Session->delete('Auth.redirect');
|
||||
$this->_loggedIn = false;
|
||||
return Router::normalize($this->logoutRedirect);
|
||||
}
|
||||
|
@ -915,7 +915,7 @@ class AuthComponent extends Object {
|
|||
*/
|
||||
function shutdown(&$controller) {
|
||||
if ($this->_loggedIn) {
|
||||
$this->Session->del('Auth.redirect');
|
||||
$this->Session->delete('Auth.redirect');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue