fix logout useless session_unset()

This commit is contained in:
osaajani 2020-02-06 03:10:56 +01:00
parent 08bf5a878a
commit 2519df2c2a
1 changed files with 1 additions and 1 deletions

View File

@ -151,8 +151,8 @@ namespace controllers\publics;
*/
public function logout()
{
session_unset();
session_destroy();
$_SESSION = [];
return $this->redirect(\descartes\Router::url('Connect', 'login'));
}