18 abstract protected function check();
24 $this->
component(
'log')->debug(get_called_class() .
'::verified(' . \
Rsi\Str::bool($result) .
')',__FILE__,__LINE__);
25 $this->
component(
'security')->bruteForceDelay($this->checked = $result ?: null,get_called_class());
32 $alive->journalFilename;
33 session_regenerate_id(
true);
34 $alive->journal(
'Session ID changed to ' . session_id());
37 $this->
component(
'log')->notice(
'Could not regenerate session id: ' . $e->getMessage(),__FILE__,__LINE__);
42 $this->checked = null;
46 if($this->checked === null) $this->checked = $this->
check();
47 return $this->checked;
51 if($this->session->checked){
53 ($this->maxSessionTime && (time() - $this->session->start > $this->maxSessionTime * 60)) ||
54 ($this->maxInactiveTime && (time() - $this->session->alive > $this->maxInactiveTime * 60))
57 $this->session->alive = time();
58 return $this->session->checked;
62 $this->session->start = $this->session->alive = time();
63 $this->session->checked = $value;
$maxInactiveTime
Maximum period of inactivity (minutes; empty = infinite).
$maxSessionTime
Maximum duration of a session (minutes; empty = infinite).
check()
Perform the check.
verified($result)
Process the result of a verification.
$controllerName
Controller to redirect the user to if more information is required (e.g. a username and...
component($name)
Get a component (local or default).