diff --git a/App/Wrappers/SessionWrapper.php b/App/Wrappers/SessionWrapper.php index 0709267..e701d86 100644 --- a/App/Wrappers/SessionWrapper.php +++ b/App/Wrappers/SessionWrapper.php @@ -11,12 +11,12 @@ class SessionWrapper if (session_status() == PHP_SESSION_NONE) { session_start(); + if(!isset($_SESSION[SessionElement::IS_LOGGED_IN->value])) + { + self::Set(SessionElement::IS_LOGGED_IN, false); + } } - if(!isset($_SESSION[SessionElement::IS_LOGGED_IN->value])) - { - self::Set(SessionElement::IS_LOGGED_IN, false); - } } public static function Get(SessionElement $target): mixed