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

FEAT #1774 add httpOnly

parent 323adefc
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,7 @@ if (isset($_SESSION['user']['UserId']) && isset($_GET['page']) ...@@ -88,6 +88,7 @@ if (isset($_SESSION['user']['UserId']) && isset($_GET['page'])
time() + ($_SESSION['config']['cookietime'] * 1000), time() + ($_SESSION['config']['cookietime'] * 1000),
0, 0, $_SERVER["HTTPS"], 1 0, 0, $_SERVER["HTTPS"], 1
); );
} }
......
...@@ -16,7 +16,6 @@ require_once 'core/core_tables.php'; ...@@ -16,7 +16,6 @@ require_once 'core/core_tables.php';
$core = new core_tools(); $core = new core_tools();
$core->load_lang(); $core->load_lang();
$name = 'maarch'; $name = 'maarch';
// TODO: test + forge
//setcookie("maarch", "", time() - 3600000); //setcookie("maarch", "", time() - 3600000);
setcookie ($name, "", 1); setcookie ($name, "", 1);
setcookie ($name, false); setcookie ($name, false);
......
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