Skip to content

Commit 8035207

Browse files
authored
Merge pull request #226 from leomoon/master
Fixes docker not allowing login due to HTTP_HOST #217
2 parents bc34f64 + 888ce71 commit 8035207

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.70
1+
1.0.71

classes/Session.class.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ function start(){
2626
session_set_cookie_params([
2727
'lifetime' => 0,
2828
'path' => '/',
29-
'domain' => $_SERVER['HTTP_HOST'],
3029
'httponly' => true, // prevent javascript access
3130
'samesite' => 'Strict' // restrict to same-site requests
3231
]);
@@ -77,7 +76,6 @@ public function privacyAgreement(bool $value) {
7776
setcookie('privacy', $value, [
7877
'expires' => time() + (60 * 60 * 24 * 30),
7978
'path' => '/',
80-
'domain' => $_SERVER['HTTP_HOST'],
8179
'httponly' => true,
8280
'samesite' => 'Strict'
8381
]);

0 commit comments

Comments
 (0)