mirror of https://github.com/MISP/MISP
chg: [internal] Faster check for session destruction
parent
f1bab1e98c
commit
7f935f4cec
|
@ -2078,12 +2078,10 @@ class User extends AppModel
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$cutoff = $redis->get('misp:session_destroy:' . $id);
|
list($cutoff, $allcutoff) = $redis->mGet(['misp:session_destroy:' . $id, 'misp:session_destroy:all']);
|
||||||
$allcutoff = $redis->get('misp:session_destroy:all');
|
|
||||||
if (
|
if (
|
||||||
empty($cutoff) ||
|
empty($cutoff) ||
|
||||||
(
|
(
|
||||||
!empty($cutoff) &&
|
|
||||||
!empty($allcutoff) &&
|
!empty($allcutoff) &&
|
||||||
$allcutoff < $cutoff
|
$allcutoff < $cutoff
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue