Skip to content

Commit

Permalink
session失效修复
Browse files Browse the repository at this point in the history
  • Loading branch information
gongfuxiang committed Apr 17, 2024
1 parent 96fd60e commit 69a2ef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ function DefaultTheme($theme = null)
{
if(session_status() != 2)
{
ini_set('session.cookie_domain', MyFileConfig('common_cookie_domain', '', '', true));
session_start();
}
if(empty($_SESSION[$key]))
Expand All @@ -146,6 +147,7 @@ function DefaultTheme($theme = null)
{
if(session_status() != 2)
{
ini_set('session.cookie_domain', MyFileConfig('common_cookie_domain', '', '', true));
session_start();
}
$_SESSION[$key] = empty($theme) ? $params[$key] : $theme;
Expand Down

0 comments on commit 69a2ef5

Please sign in to comment.