Integrate portal identity and shared navigation in isolated SSO mode
This commit is contained in:
@@ -2,13 +2,20 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once __DIR__ . '/db.php';
|
||||
require_once __DIR__ . '/portal.php';
|
||||
|
||||
if (session_status() === PHP_SESSION_NONE) {
|
||||
if (portalEnabled()) {
|
||||
session_name('JINNIU_FUSION_LOAN_SID');
|
||||
session_set_cookie_params(['httponly'=>true, 'samesite'=>'Lax', 'secure'=>getenv('PORTAL_COOKIE_SECURE')==='1']);
|
||||
ini_set('session.use_strict_mode', '1');
|
||||
}
|
||||
session_start();
|
||||
}
|
||||
|
||||
function currentUser(): ?array
|
||||
{
|
||||
portalValidate();
|
||||
if (empty($_SESSION['uid'])) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user