refs #3971 Version cookie fixes
gitea/hedera-web/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2022-11-11 15:40:07 +01:00
parent 8fac1a5ab4
commit 7451f643af
4 changed files with 4 additions and 4 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (22.44.4) stable; urgency=low
hedera-web (22.44.5) stable; urgency=low
* Initial Release.

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "22.44.4",
"version": "22.44.5",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -69,7 +69,7 @@ class HtmlService extends Service {
$domain = explode(':', $_SERVER['HTTP_HOST'])[0];
setcookie('vnVersion', $this->getVersion()->toString(), [
//'samesite' => 'Lax',
'domain' => $domain
//'domain' => $domain
]);
// Loading the requested page

View File

@ -128,7 +128,7 @@ abstract class Service {
setcookie('vnVisit', $row['visit'], [
'expires' => time() + 31536000, // 1 Year
//'samesite' => 'Lax',
'domain' => $domain
//'domain' => $domain
]);
$_SESSION['access'] = $row['access'];
} else