|
|
@ -178,7 +178,7 @@ class Internal extends Session { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function reopen(): bool { |
|
|
|
public function reopen(): bool { |
|
|
|
if ($this->sessionClosed) { |
|
|
|
if ($this->sessionClosed) { |
|
|
|
$this->startSession(); |
|
|
|
$this->startSession(false, false); |
|
|
|
$this->sessionClosed = false; |
|
|
|
$this->sessionClosed = false; |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
@ -225,7 +225,11 @@ class Internal extends Session { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private function startSession(bool $silence = false) { |
|
|
|
private function startSession(bool $silence = false, bool $readAndClose = true) { |
|
|
|
$this->invoke('session_start', [['cookie_samesite' => 'Lax']], $silence); |
|
|
|
$sessionParams = ['cookie_samesite' => 'Lax']; |
|
|
|
|
|
|
|
if (\OC::hasSessionRelaxedExpiry()) { |
|
|
|
|
|
|
|
$sessionParams['read_and_close'] = $readAndClose; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$this->invoke('session_start', [$sessionParams], $silence); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|