Commit 7b997ca4 authored by jeremy's avatar jeremy
Browse files

Bug #225365: write data to session bin

parent a7ea630b
......@@ -53,7 +53,7 @@ function sess_write($key, $value) {
$session->session = $value;
$session->timestamp = time();
if ($user->uid && $user->from_cache !== TRUE) {
if ($user->uid || $value) {
dmemcache_set($key, $session, ini_get('session.gc_maxlifetime'), 'session');
dmemcache_set($user->uid, $user, ini_get('session.gc_maxlifetime'), 'users');
if ($user->uid && $user->access < time() - 300) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment