refs #3971 Cookie fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2022-11-11 15:32:45 +01:00
parent f82ecaad91
commit c2a601c30c
2 changed files with 2 additions and 2 deletions

View File

@ -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
]);

View File

@ -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'];