summaryrefslogtreecommitdiff
path: root/include/sessions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-25 15:28:27 +0300
committerAndrew Dolgov <[email protected]>2021-02-25 15:28:27 +0300
commitefd196839a20ae7e38be227c62b9c134ddec4bea (patch)
treece669c677cd793165af87e71e49adade319baa3b /include/sessions.php
parent1464abbbfc73171bd65e13d3b6e07511f5663815 (diff)
stop caching schema version entirely, fix some session_start() related warnings
Diffstat (limited to 'include/sessions.php')
-rw-r--r--include/sessions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sessions.php b/include/sessions.php
index d4f21d8cd..23815e182 100644
--- a/include/sessions.php
+++ b/include/sessions.php
@@ -152,6 +152,7 @@
if (!defined('NO_SESSION_AUTOSTART')) {
if (isset($_COOKIE[session_name()])) {
- @session_start();
+ if (session_status() != PHP_SESSION_ACTIVE)
+ session_start();
}
}