Skip to content
Snippets Groups Projects
Commit 2c848c24 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

FEAT #2513 cookies securisation

parent e43581c1
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ $sessionName = str_replace('core', '', $sessionName); ...@@ -8,7 +8,6 @@ $sessionName = str_replace('core', '', $sessionName);
if ($sessionName == '') { if ($sessionName == '') {
$sessionName = 'maarch'; $sessionName = 'maarch';
} }
$_SESSION['sessionName'] = $sessionName;
$secure = $_SERVER["HTTPS"]; $secure = $_SERVER["HTTPS"];
$httponly = true; $httponly = true;
session_set_cookie_params( session_set_cookie_params(
...@@ -18,9 +17,11 @@ session_set_cookie_params( ...@@ -18,9 +17,11 @@ session_set_cookie_params(
$secure, $secure,
$httponly $httponly
); );
session_name($_SESSION['sessionName']); session_name($sessionName);
session_start(); session_start();
$_SESSION['sessionName'] = $sessionName;
if (!isset($_SESSION['config']) || !isset($_SESSION['businessapps'][0]['appid'])) { if (!isset($_SESSION['config']) || !isset($_SESSION['businessapps'][0]['appid'])) {
require_once('class/class_portal.php'); require_once('class/class_portal.php');
$portal = new portal(); $portal = new portal();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment