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*