diff --git a/defaults/main.yml b/defaults/main.yml index 62343413d6f7f11e4dff14ba0c46b6eb88a95c48..3888a985e08ddbd53ca7f4ba5c5d8a245e7b83f6 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 9430046dd1e55181c0cc4fafc3a90a51312c5ef2..7fc90937f5162aaf2cda657cd4b9214350c936ea 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*