aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/sessions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index 9b6562fdd..7fb127ff5 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -136,6 +136,9 @@
if ($user = get_user_by_code($code)) {
$_SESSION['user'] = $user;
} else {
+ unset($_SESSION['user']);
+ $_SESSION['guid'] = 0;
+ $_SESSION['id'] = 0;
}
} else {
$_SESSION['guid'] = 0;