Skip to content

Commit

Permalink
Merge pull request #226 from leomoon/master
Browse files Browse the repository at this point in the history
Fixes docker not allowing login due to HTTP_HOST #217
  • Loading branch information
leomoon authored Dec 6, 2024
2 parents bc34f64 + 888ce71 commit 8035207
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.70
1.0.71
2 changes: 0 additions & 2 deletions classes/Session.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ function start(){
session_set_cookie_params([
'lifetime' => 0,
'path' => '/',
'domain' => $_SERVER['HTTP_HOST'],
'httponly' => true, // prevent javascript access
'samesite' => 'Strict' // restrict to same-site requests
]);
Expand Down Expand Up @@ -77,7 +76,6 @@ public function privacyAgreement(bool $value) {
setcookie('privacy', $value, [
'expires' => time() + (60 * 60 * 24 * 30),
'path' => '/',
'domain' => $_SERVER['HTTP_HOST'],
'httponly' => true,
'samesite' => 'Strict'
]);
Expand Down

0 comments on commit 8035207

Please sign in to comment.