Commit 3b8d511b authored by Tomáš Pospíšil's avatar Tomáš Pospíšil
Browse files

better handling of inactive session

parent 6e9f65ad
Pipeline #415 failed with stages
......@@ -6,7 +6,7 @@ class OnOffSwitcher
{
public static function shouldProfile(string $profileName): bool
{
if (session_status() !== PHP_SESSION_ACTIVE) {
if (session_status() === PHP_SESSION_NONE && !headers_sent()) {
session_start();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment