From 7e86de7eea744b112a380e441c09afd05c4642c8 Mon Sep 17 00:00:00 2001 From: Julian Rother <julian@cccv.de> Date: Sun, 4 Dec 2022 00:25:08 +0100 Subject: [PATCH] Add session_gc_maxlifetime php.ini option --- defaults/main.yml | 1 + templates/php-fpm/php.ini.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 6234341..3888a98 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -78,3 +78,4 @@ phpinidefault: upload_max_filesize: 64M memory_limit: 128M date_timezone: UTC + session_gc_maxlifetime: 1440 diff --git a/templates/php-fpm/php.ini.j2 b/templates/php-fpm/php.ini.j2 index 9430046..7fc9093 100644 --- a/templates/php-fpm/php.ini.j2 +++ b/templates/php-fpm/php.ini.j2 @@ -1422,7 +1422,7 @@ session.gc_divisor = 1000 ; After this number of seconds, stored data will be seen as 'garbage' and ; cleaned up by the garbage collection process. ; http://php.net/session.gc-maxlifetime -session.gc_maxlifetime = 1440 +session.gc_maxlifetime = {{ phpini.session_gc_maxlifetime }} ; NOTE: If you are using the subdirectory option for storing session files ; (see session.save_path above), then garbage collection does *not* -- GitLab