From 08561be92bbfafe149b758634f3df4d00ee310de Mon Sep 17 00:00:00 2001 From: cflip <36554078+cflip@users.noreply.github.com> Date: Sun, 25 Apr 2021 09:13:44 -0600 Subject: Only start session if it hasn't already been started --- includes/Session.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Session.php b/includes/Session.php index a9c1dc7..967b11b 100644 --- a/includes/Session.php +++ b/includes/Session.php @@ -6,7 +6,8 @@ class Session private function __construct() { - session_start(); + if (session_status() == PHP_SESSION_NONE) + session_start(); } public static function get() -- cgit v1.2.3