Skip to content

Commit

Permalink
Fix invalidate User School in session on login
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisjacquet committed Apr 18, 2022
1 parent d20dbc4 commit 47af828
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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
Expand Down
4 changes: 4 additions & 0 deletions index.php
Expand Up @@ -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'];
Expand Down Expand Up @@ -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'];
Expand Down

0 comments on commit 47af828

Please sign in to comment.