From c2a601c30c8d3be57733aca8aeb75bea67ce9464 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Fri, 11 Nov 2022 15:32:45 +0100 Subject: [PATCH] refs #3971 Cookie fixes --- web/html-service.php | 2 +- web/service.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/html-service.php b/web/html-service.php index 495588aa..94a05f39 100644 --- a/web/html-service.php +++ b/web/html-service.php @@ -68,7 +68,7 @@ class HtmlService extends Service { $domain = explode(':', $_SERVER['HTTP_HOST'])[0]; setcookie('vnVersion', $this->getVersion()->toString(), [ - 'samesite' => 'Lax', + //'samesite' => 'Lax', 'domain' => $domain ]); diff --git a/web/service.php b/web/service.php index 97e19a4e..b1f78da8 100644 --- a/web/service.php +++ b/web/service.php @@ -127,7 +127,7 @@ abstract class Service { $domain = explode(':', $_SERVER['HTTP_HOST'])[0]; setcookie('vnVisit', $row['visit'], [ 'expires' => time() + 31536000, // 1 Year - 'samesite' => 'Lax', + //'samesite' => 'Lax', 'domain' => $domain ]); $_SESSION['access'] = $row['access'];