diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-20 19:05:00 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-20 19:05:00 +0000 |
commit | 0f3892d8a732d965c58a4816ee7253ffda517ac3 (patch) | |
tree | 2281acf5ab609bfd193b2b89333d78627e391582 /engine/lib/sessions.php | |
parent | 3de118dae7fdc17e117330078846f538254411d0 (diff) | |
download | elgg-0f3892d8a732d965c58a4816ee7253ffda517ac3.tar.gz elgg-0f3892d8a732d965c58a4816ee7253ffda517ac3.tar.bz2 |
Fixes #548: Introducing set_last_login($user_guid). Called from login(), but call from any authentication code where appropriate.
git-svn-id: https://code.elgg.org/elgg/trunk@2481 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sessions.php')
-rw-r--r-- | engine/lib/sessions.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php index dda4e960a..7ea650434 100644 --- a/engine/lib/sessions.php +++ b/engine/lib/sessions.php @@ -241,7 +241,10 @@ // Users privilege has been elevated, so change the session id (help prevent session hijacking) session_regenerate_id();
-
+ + // Update statistics + set_last_login($_SESSION['guid']); +
return true;
}
|