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

FEAT #2513 cookies securisation

parent 69af8367
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ $sessionName = str_replace('core', '', $sessionName); ...@@ -8,7 +8,7 @@ $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,7 +18,7 @@ session_set_cookie_params( ...@@ -18,7 +18,7 @@ session_set_cookie_params(
$secure, $secure,
$httponly $httponly
); );
session_name($sessionName); session_name($_SESSION['sessionName']);
session_start(); session_start();
if (!isset($_SESSION['config']) || !isset($_SESSION['businessapps'][0]['appid'])) { if (!isset($_SESSION['config']) || !isset($_SESSION['businessapps'][0]['appid'])) {
......
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