public function clear() {
$this->invoke('session_unset');
$this->regenerateId();
- $this->startSession();
+ $this->startSession(true);
$_SESSION = [];
}
}
}
- private function startSession() {
+ private function startSession(bool $silence = false) {
if (PHP_VERSION_ID < 70300) {
- $this->invoke('session_start');
+ $this->invoke('session_start', [], $silence);
} else {
- $this->invoke('session_start', [['cookie_samesite' => 'Lax']]);
+ $this->invoke('session_start', [['cookie_samesite' => 'Lax']], $silence);
}
}
}