diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 21:24:03 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 21:24:03 +0000 |
commit | 3f60f939e129d3a63adb16fe0dda66823ce161d7 (patch) | |
tree | e99e9ee777156fae29bfa9e21c3796c63a425dea /engine | |
parent | 0b6489397a8f5a01c28e61d07548e99ef3e4ff6a (diff) | |
download | elgg-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')
-rw-r--r-- | engine/lib/sessions.php | 4 |
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();
|