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;