mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-06 14:46:27 +02:00
fix logout useless session_unset()
This commit is contained in:
parent
08bf5a878a
commit
2519df2c2a
1 changed files with 1 additions and 1 deletions
|
@ -151,8 +151,8 @@ namespace controllers\publics;
|
||||||
*/
|
*/
|
||||||
public function logout()
|
public function logout()
|
||||||
{
|
{
|
||||||
session_unset();
|
|
||||||
session_destroy();
|
session_destroy();
|
||||||
|
$_SESSION = [];
|
||||||
|
|
||||||
return $this->redirect(\descartes\Router::url('Connect', 'login'));
|
return $this->redirect(\descartes\Router::url('Connect', 'login'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue