fix logout useless session_unset()
This commit is contained in:
parent
08bf5a878a
commit
2519df2c2a
|
@ -151,8 +151,8 @@ namespace controllers\publics;
|
|||
*/
|
||||
public function logout()
|
||||
{
|
||||
session_unset();
|
||||
session_destroy();
|
||||
$_SESSION = [];
|
||||
|
||||
return $this->redirect(\descartes\Router::url('Connect', 'login'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue