Log out ghost sessions instead of displaying message
This commit is contained in:
parent
aa91004ab5
commit
13a0abb378
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ if (isset($_COOKIE[SESSION_COOKIE_NAME]))
|
||||||
|
|
||||||
if (isset($_SESSION['id'])) {
|
if (isset($_SESSION['id'])) {
|
||||||
if (!isset(query('select', 'users', ['id' => $_SESSION['id']], 'id')[0]))
|
if (!isset(query('select', 'users', ['id' => $_SESSION['id']], 'id')[0]))
|
||||||
output(403, _('This account doesn\'t exist anymore. Log out to end this ghost session.'));
|
logout();
|
||||||
|
|
||||||
// Decrypt display username
|
// Decrypt display username
|
||||||
if (!isset($_COOKIE['display-username-decryption-key']))
|
if (!isset($_COOKIE['display-username-decryption-key']))
|
||||||
|
|
Loading…
Reference in a new issue