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 start session earlier.', E_USER_NOTICE);
Copy file name to clipboardExpand all lines: src/Http/Session.php
+3-3
Original file line number
Diff line number
Diff line change
@@ -224,7 +224,7 @@ public function regenerateId()
224
224
{
225
225
if (self::$started && !$this->regenerated) {
226
226
if (headers_sent($file, $line)) {
227
-
thrownewNette\InvalidStateException("Cannot regenerate session ID after HTTP headers have been sent" . ($file ? " (output started at $file:$line)." : "."));
227
+
thrownewNette\InvalidStateException('Cannot regenerate session ID after HTTP headers have been sent' . ($file ? " (output started at $file:$line)." : '.'));
228
228
}
229
229
session_regenerate_id(TRUE);
230
230
session_write_close();
@@ -413,7 +413,7 @@ private function configure(array $config)
413
413
414
414
} else {
415
415
if (defined('SID')) {
416
-
thrownewNette\InvalidStateException("Unable to set 'session.$key' to value '$value' when session has been started" . ($this->started ? "." : " by session.auto_start or session_start()."));
416
+
thrownewNette\InvalidStateException("Unable to set 'session.$key' to value '$value' when session has been started" . ($this->started ? '.' : ' by session.auto_start or session_start().'));
417
417
}
418
418
if (isset($special[$key])) {
419
419
$key = "session_$key";
@@ -479,7 +479,7 @@ public function setCookieParameters($path, $domain = NULL, $secure = NULL)
0 commit comments