|
|
|
@ -7,6 +7,11 @@ use BradyMcD\TAATP\SessionInterface;
|
|
|
|
/** @SuppressWarnings(PHPMD.Superglobals) */
|
|
|
|
/** @SuppressWarnings(PHPMD.Superglobals) */
|
|
|
|
class Base implements SessionInterface
|
|
|
|
class Base implements SessionInterface
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
\session_status() !== PHP_SESSION_NONE? : \session_start();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private function prefix($key): string
|
|
|
|
private function prefix($key): string
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return "taatp_" . $key;
|
|
|
|
return "taatp_" . $key;
|
|
|
|
|