Skip to content

Commit

Permalink
Add env var for configuring session.cookie_samesite, closes #208
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Dec 2, 2024
1 parent a1c74a7 commit 0b1e067
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions 8/templates/docker-php-8.1.ini.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ session.cookie_lifetime = {{ getenv "PHP_SESSION_COOKIE_LIFETIME" "0" }}
session.cookie_path = {{ getenv "PHP_SESSION_COOKIE_PATH" "/" }}
session.cookie_domain = {{ getenv "PHP_SESSION_COOKIE_DOMAIN" }}
session.cookie_httponly = {{ getenv "PHP_SESSION_COOKIE_HTTPONLY" "0" }}
session.cookie_samesite = {{ getenv "PHP_SESSION_COOKIE_SAMESITE" }}
session.serialize_handler = {{ getenv "PHP_SESSION_SERIALIZE_HANDLER" "php" }}
session.gc_probability = {{ getenv "PHP_SESSION_GC_PROBABILITY" "1" }}
session.gc_divisor = {{ getenv "PHP_SESSION_GC_DIVISOR" "100" }}
Expand Down
1 change: 1 addition & 0 deletions 8/templates/docker-php-8.2.ini.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ session.cookie_lifetime = {{ getenv "PHP_SESSION_COOKIE_LIFETIME" "0" }}
session.cookie_path = {{ getenv "PHP_SESSION_COOKIE_PATH" "/" }}
session.cookie_domain = {{ getenv "PHP_SESSION_COOKIE_DOMAIN" }}
session.cookie_httponly = {{ getenv "PHP_SESSION_COOKIE_HTTPONLY" "0" }}
session.cookie_samesite = {{ getenv "PHP_SESSION_COOKIE_SAMESITE" }}
session.serialize_handler = {{ getenv "PHP_SESSION_SERIALIZE_HANDLER" "php" }}
session.gc_probability = {{ getenv "PHP_SESSION_GC_PROBABILITY" "1" }}
session.gc_divisor = {{ getenv "PHP_SESSION_GC_DIVISOR" "100" }}
Expand Down
1 change: 1 addition & 0 deletions 8/templates/docker-php-8.3.ini.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ session.cookie_lifetime = {{ getenv "PHP_SESSION_COOKIE_LIFETIME" "0" }}
session.cookie_path = {{ getenv "PHP_SESSION_COOKIE_PATH" "/" }}
session.cookie_domain = {{ getenv "PHP_SESSION_COOKIE_DOMAIN" }}
session.cookie_httponly = {{ getenv "PHP_SESSION_COOKIE_HTTPONLY" "0" }}
session.cookie_samesite = {{ getenv "PHP_SESSION_COOKIE_SAMESITE" }}
session.serialize_handler = {{ getenv "PHP_SESSION_SERIALIZE_HANDLER" "php" }}
session.gc_probability = {{ getenv "PHP_SESSION_GC_PROBABILITY" "1" }}
session.gc_divisor = {{ getenv "PHP_SESSION_GC_DIVISOR" "100" }}
Expand Down
1 change: 1 addition & 0 deletions 8/templates/docker-php-8.4.ini.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ session.cookie_lifetime = {{ getenv "PHP_SESSION_COOKIE_LIFETIME" "0" }}
session.cookie_path = {{ getenv "PHP_SESSION_COOKIE_PATH" "/" }}
session.cookie_domain = {{ getenv "PHP_SESSION_COOKIE_DOMAIN" }}
session.cookie_httponly = {{ getenv "PHP_SESSION_COOKIE_HTTPONLY" "0" }}
session.cookie_samesite = {{ getenv "PHP_SESSION_COOKIE_SAMESITE" }}
session.serialize_handler = {{ getenv "PHP_SESSION_SERIALIZE_HANDLER" "php" }}
session.gc_probability = {{ getenv "PHP_SESSION_GC_PROBABILITY" "1" }}
session.gc_divisor = {{ getenv "PHP_SESSION_GC_DIVISOR" "100" }}
Expand Down

0 comments on commit 0b1e067

Please sign in to comment.