* Code for app session.

This commit is contained in:
Yagami
2021-03-19 09:31:44 +08:00
parent 5ea5fa3829
commit 7f52574a2f
2 changed files with 9 additions and 10 deletions
+3 -4
View File
@@ -2512,8 +2512,7 @@ class super
}
elseif($this->scope == 'session')
{
//$openApp = $openApp ? $openApp : $this->openApp;
//$openApp ? $_SESSION["app-$openApp"][$key] = $value : $_SESSION[$key] = $value;
if($openApp) $_SESSION["app-$openApp"][$key] = $value;
$_SESSION[$key] = $value;
}
elseif($this->scope == 'env')
@@ -2561,8 +2560,8 @@ class super
}
elseif($this->scope == 'session')
{
//$openApp = $this->openApp;
//if($openApp and isset($_SESSION["app-$openApp"][$key])) return $_SESSION["app-$openApp"][$key];
$openApp = $this->openApp;
if($openApp and isset($_SESSION["app-$openApp"][$key])) return $_SESSION["app-$openApp"][$key];
if(isset($_SESSION[$key])) return $_SESSION[$key];
return false;
}