aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/sessions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index f909ae60f..dba0db728 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -201,7 +201,9 @@
if (!empty($_SESSION['code'])) {
$code = md5($_SESSION['code']);
if ($user = get_user_by_code($code)) {
- $_SESSION['user'] = $user;
+ $_SESSION['user'] = $user;
+ $_SESSION['id'] = $user->getGUID();
+ $_SESSION['guid'] = $_SESSION['id'];
} else {
unset($_SESSION['user']);
// $_SESSION['user'] = new ElggDummy();