/**
* Session handler for MySQLi
*/
class MySQLiHandler extends DatabaseHandler
{ /**
* Lock the session.
*/
protected function lockSession(string
$sessionID): bool
{ $arg =
md5($sessionID .
($this->matchIP ? '_' .
$this->ipAddress : ''
));
if ($this->db->
query("SELECT GET_LOCK('{
$arg}', 300) AS ci_session_lock"
)->
getRow()->ci_session_lock
) { $this->lock =
$arg;
return true;
} return $this->
fail();
} /**
* Releases the lock, if any.
*/