From 47af828b21091b2cafb318260e4875fcca0218af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Jacquet?= Date: Mon, 18 Apr 2022 19:29:50 +0200 Subject: [PATCH] Fix invalidate User School in session on login --- CHANGES.md | 4 ++++ index.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 303c2f355..ac43572b2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,10 @@ # CHANGES ## RosarioSIS Student Information System +Changes in 8.9.2 +---------------- +- Fix invalidate User School in session on login in index.php + Changes in 8.9.1 ---------------- - Fix regression since 8.6 Mailing Labels widget HTML in Widgets.php diff --git a/index.php b/index.php index 4dd6e0929..fd17cc578 100644 --- a/index.php +++ b/index.php @@ -188,6 +188,8 @@ // Invalidate any active Student session. unset( $_SESSION['STUDENT_ID'] ); + unset( $_SESSION['UserSchool'] ); + $_SESSION['LAST_LOGIN'] = $login_RET[1]['LAST_LOGIN']; $failed_login = $login_RET[1]['FAILED_LOGIN']; @@ -227,6 +229,8 @@ // Invalidate any active User session. unset( $_SESSION['STAFF_ID'] ); + unset( $_SESSION['UserSchool'] ); + $_SESSION['LAST_LOGIN'] = $student_RET[1]['LAST_LOGIN']; $failed_login = $student_RET[1]['FAILED_LOGIN'];