aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 21:24:03 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-13 21:24:03 +0000
commit3f60f939e129d3a63adb16fe0dda66823ce161d7 (patch)
treee99e9ee777156fae29bfa9e21c3796c63a425dea /engine/lib
parent0b6489397a8f5a01c28e61d07548e99ef3e4ff6a (diff)
downloadelgg-3f60f939e129d3a63adb16fe0dda66823ce161d7.tar.gz
elgg-3f60f939e129d3a63adb16fe0dda66823ce161d7.tar.bz2
Fixing some session blanking problems.
git-svn-id: https://code.elgg.org/elgg/trunk@1910 36083f99-b078-4883-b0ff-0f9b5a30f544
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();