From 5a31b2ed285b22473dbb489adef5b7ff8d878da7 Mon Sep 17 00:00:00 2001 From: Brady McDonough Date: Tue, 13 Feb 2024 16:55:11 -0700 Subject: [PATCH] Added session init to Base session manager --- src/Session/Base.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Session/Base.php b/src/Session/Base.php index ff181ad..80cc6b9 100644 --- a/src/Session/Base.php +++ b/src/Session/Base.php @@ -7,6 +7,11 @@ use BradyMcD\TAATP\SessionInterface; /** @SuppressWarnings(PHPMD.Superglobals) */ class Base implements SessionInterface { + public function __construct() + { + \session_status() !== PHP_SESSION_NONE? : \session_start(); + } + private function prefix($key): string { return "taatp_" . $key;