0
1
Fork 0

refs #3971 Version cookie fix

This commit is contained in:
Juan Ferrer 2022-11-11 15:46:30 +01:00
parent 7451f643af
commit 7b6b50e27e
5 changed files with 7 additions and 7 deletions

2
debian/changelog vendored
View File

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

View File

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

View File

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

View File

@ -18,7 +18,7 @@ class JsonService extends RestService {
$this->init();
$this->startSession();
$this->checkVersion();
//$this->checkVersion();
$json = $this->loadMethod(__NAMESPACE__.'\JsonRequest');
$this->replyJson($json);

View File

@ -127,8 +127,8 @@ abstract class Service {
$domain = explode(':', $_SERVER['HTTP_HOST'])[0];
setcookie('vnVisit', $row['visit'], [
'expires' => time() + 31536000, // 1 Year
//'samesite' => 'Lax',
//'domain' => $domain
'samesite' => 'Lax',
'domain' => $domain
]);
$_SESSION['access'] = $row['access'];
} else