Otherwise restoring the requesttoken would reopen and read the existing
session data and restore it instead of clearing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Reset and recreate the session
*/
public function clear() {
+ $reopened = $this->reopen();
$requesttoken = $this->get('requesttoken');
$this->sessionValues = [];
if ($requesttoken !== null) {
}
$this->isModified = true;
$this->session->clear();
+ if ($reopened) {
+ $this->close();
+ }
}
public function reopen(): bool {