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'];