summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-11-09 11:33:19 +0800
committereltrac <hi@eltr.ac>2026-11-09 11:33:19 +0800
commit6f473a2856b627fde9af8500bbb5324e0a21478b (patch)
tree38be5aa16d7a84eda9cce874d409a60b80199833 /includes
parent382e372a56f71029113a24b2355966160c5325ef (diff)
includes/header: 启动 session 前先判断是否已经启动
Diffstat (limited to 'includes')
-rw-r--r--includes/header.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/header.php b/includes/header.php
index 16b2d59..599c6ea 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -1,5 +1,5 @@
<?php
-session_start();
+if(!isset($_SESSION)) session_start();
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
?>
<?php if($this->options->navStyle==1): ?><div class="mask" id="full-mask"></div><?php endif; ?>