You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
trigger_error('Possible problem: you are sending a HTTP header while already having some data in output buffer. Try Tracy\OutputDebugger or send cookies/start session earlier.');
if (session_status() === PHP_SESSION_ACTIVE) { // adapt an existing session
81
78
if (!$this->started) {
@@ -254,7 +251,7 @@ public function regenerateId(): void
254
251
thrownewNette\InvalidStateException('Cannot regenerate session ID after HTTP headers have been sent' . ($file ? " (output started at $file:$line)." : '.'));
255
252
}
256
253
257
-
session_regenerate_id(true);
254
+
session_regenerate_id(delete_old_session: true);
258
255
} else {
259
256
session_id(session_create_id());
260
257
}
@@ -318,7 +315,7 @@ public function getSection(string $section, string $class = SessionSection::clas
0 commit comments