diff --git a/WEB/Model/Model.php b/WEB/Model/Model.php index a58a4cc4..d0712ad9 100644 --- a/WEB/Model/Model.php +++ b/WEB/Model/Model.php @@ -148,4 +148,12 @@ class Model require($rep . $vues['erreur']); } } + + public function logout() + { + session_unset(); + session_destroy(); + $_SESSION = null; + $this->goToHome(); + } } \ No newline at end of file diff --git a/WEB/Model/scripted.db b/WEB/Model/scripted.db index 3ab47f77..5ee8fe20 100644 Binary files a/WEB/Model/scripted.db and b/WEB/Model/scripted.db differ