We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 83aef8e + b17c4a2 commit 92756f1Copy full SHA for 92756f1
1 file changed
lib/private/Session/CryptoSessionData.php
@@ -152,13 +152,17 @@ public function remove(string $key) {
152
* Reset and recreate the session
153
*/
154
public function clear() {
155
+ $reopened = $this->reopen();
156
$requesttoken = $this->get('requesttoken');
157
$this->sessionValues = [];
158
if ($requesttoken !== null) {
159
$this->set('requesttoken', $requesttoken);
160
}
161
$this->isModified = true;
162
$this->session->clear();
163
+ if ($reopened) {
164
+ $this->close();
165
+ }
166
167
168
public function reopen(): bool {
0 commit comments