aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/sessions.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index dba0db728..cce2b0e6b 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -195,7 +195,8 @@
} else {
//$_SESSION['user'] = new ElggDummy();
$_SESSION['id'] = 0;
- $_SESSION['guid'] = 0;
+ $_SESSION['guid'] = 0;
+ $_SESSION['code'] = "";
}
} else {
if (!empty($_SESSION['code'])) {
@@ -208,12 +209,14 @@
unset($_SESSION['user']);
// $_SESSION['user'] = new ElggDummy();
$_SESSION['guid'] = 0;
- $_SESSION['id'] = 0;
+ $_SESSION['id'] = 0;
+ $_SESSION['code'] = "";
}
} else {
//$_SESSION['user'] = new ElggDummy();
$_SESSION['guid'] = 0;
- $_SESSION['id'] = 0;
+ $_SESSION['id'] = 0;
+ $_SESSION['code'] = "";
}
}
if ($_SESSION['id'] > 0) {