method findSessions documentation in bbn\User\Manager
function(string $id_user = NULL, int $minutes = 5)
{
$cfg = [
'table' => $this->class_cfg['tables']['sessions'],
'fields' => [],
'where' => [
[
'field' => $this->class_cfg['arch']['sessions']['last_activity'],
'operator' => '<',
'value' => 'DATE_SUB(NOW(), INTERVAL '.$this->db->csn($this->class_cfg['sess_length'], true).' MINUTE)'
]
]
];
if (!\is_null($id_user)) {
$cfg['where'][] = [
'field' => $this->class_cfg['arch']['sessions']['id_user'],
'value' => $id_user
];
}
return $this->db->rselectAll($cfg);
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions