Trigger on end user session

I try to find any trigger on end user session (after visit_standard_length) but I don’t see any „timeout” on PHP and any trigger in DB. It looks like the session end on the next user request when Matomo can not find a record on DB matomo_log_visit table:

$lookAheadNSeconds = $this->visitStandardLength;
$lookBackNSeconds = $this->visitStandardLength;
if ($this->lookBackNSecondsCustom > $lookBackNSeconds) {
    $lookBackNSeconds = $this->lookBackNSecondsCustom;
$timeLookBack = date('Y-m-d H:i:s', $request->getCurrentTimestamp() - $lookBackNSeconds);
$timeLookAhead = date('Y-m-d H:i:s', $request->getCurrentTimestamp() + $lookAheadNSeconds);

and condition from DB query:

visit_last_action_time >= $timeLookBack AND visit_last_action_time <= $timeLookAhead AND idsite = $idSite”

Am I right? If yes I have a question - is any plugin that has a trigger for/on auto end user session?