method updateActivity documentation in bbn\User

Updates last activity value for the session in database.

function() { if ($id_session = $this->getIdSession() && $this->check()) { $p = &$this->class_cfg['arch']['sessions']; $this->db->update( $this->class_cfg['tables']['sessions'], [ $p['last_activity'] => date('Y-m-d H:i:s') ], [ $p['id'] => $id_session ] ); } else { $this->setError(13); } return $this; }

Updates last activity value for the session in database. 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.