PMCORE-3468

This commit is contained in:
Julio Cesar Laura Avendaño
2021-11-24 21:00:16 +00:00
parent d64eb18039
commit 3e93235824
6 changed files with 12 additions and 20 deletions

View File

@@ -98,11 +98,7 @@ if (!isset($_SESSION['USER_LOGGED']) || $_SESSION['USER_LOGGED'] != $decodedResp
session_start();
session_regenerate_id();
if (PHP_VERSION < 5.2) {
setcookie("workspaceSkin", $enviroment, time() + (24 * 60 * 60), "/sys" . $enviroment, "; HttpOnly");
} else {
setcookie("workspaceSkin", $enviroment, time() + (24 * 60 * 60), "/sys" . $enviroment, null, false, true);
}
setcookie("workspaceSkin", $enviroment, time() + (24 * 60 * 60), "/sys" . $enviroment, null, G::is_https(), true);
$_SESSION = array();
$_SESSION['__EE_INSTALLATION__'] = 2;