summaryrefslogtreecommitdiff
path: root/includes/Session.php
diff options
context:
space:
mode:
authorcflip <36554078+cflip@users.noreply.github.com>2021-04-25 09:13:44 -0600
committercflip <36554078+cflip@users.noreply.github.com>2021-04-25 09:13:44 -0600
commit08561be92bbfafe149b758634f3df4d00ee310de (patch)
tree57f81c5f81ab54d7c0e8d3e76c8072ad194b60a9 /includes/Session.php
parentfe3e6194d33d63f149f2a362adf325019278d61e (diff)
Only start session if it hasn't already been started
Diffstat (limited to 'includes/Session.php')
-rw-r--r--includes/Session.php3
1 files changed, 2 insertions, 1 deletions
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()