X-Git-Url: https://git.llucax.com/z.facultad/75.43/tp1.git/blobdiff_plain/67a8494965128063251f7084fee7d8076d5f19e4..6cc7f7c916da362c797ddbcf599c75229bfc9b6d:/src/admin.logout.php diff --git a/src/admin.logout.php b/src/admin.logout.php index 9376e2a..c16e6f6 100644 --- a/src/admin.logout.php +++ b/src/admin.logout.php @@ -10,7 +10,11 @@ require_once 'lib/pagina.php'; -unset($_SESSION['user']); +if (isset($_SESSION['user'])) +{ + $_SESSION['user']->logout(); + unset($_SESSION['user']); +} include 'admin.login.php'; ?> \ No newline at end of file