mirror of
https://github.com/itflow-org/itflow
synced 2026-07-29 03:37:16 +00:00
Set SameSite=Lax on the session cookie
Applied at all seven session_start sites. keepalive.php and guest_post.php had no cookie flags at all and now set httponly and secure too.
This commit is contained in:
@@ -15,6 +15,7 @@ require_once "libs/totp/totp.php";
|
||||
|
||||
if (session_status() === PHP_SESSION_NONE) {
|
||||
ini_set("session.cookie_httponly", true);
|
||||
ini_set("session.cookie_samesite", "Lax");
|
||||
|
||||
if ($config_https_only || !isset($config_https_only)) {
|
||||
ini_set("session.cookie_secure", true);
|
||||
|
||||
Reference in New Issue
Block a user