correctly secure session-cookie
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -67,9 +67,13 @@ class UI
|
|||||||
|| strcasecmp('https', $isHttps) == 0
|
|| strcasecmp('https', $isHttps) == 0
|
||||||
);
|
);
|
||||||
|
|
||||||
ini_set("url_rewriter.tags", "");
|
session_set_cookie_params([
|
||||||
ini_set("session.cookie_httponly", true);
|
'path' => '/',
|
||||||
ini_set("session.cookie_secure", $isHttps);
|
'domain' => $_SERVER['HTTP_HOST'],
|
||||||
|
'secure' => $isHttps,
|
||||||
|
'httponly' => true,
|
||||||
|
'samesite' => 'Strict'
|
||||||
|
]);
|
||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
header("Content-Type: text/html; charset=UTF-8");
|
header("Content-Type: text/html; charset=UTF-8");
|
||||||
|
|||||||
Reference in New Issue
Block a user