Extend PHP session.gc_maxlifetime
Don't get logged out of RAI so quickly
This commit is contained in:
parent
6d993331c0
commit
161a0bb032
2 changed files with 8 additions and 1 deletions
|
@ -1418,7 +1418,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 = 14400
|
||||
|
||||
; NOTE: If you are using the subdirectory option for storing session files
|
||||
; (see session.save_path above), then garbage collection does *not*
|
||||
|
|
|
@ -75,6 +75,13 @@ class rhizo_base::packages::buster inherits rhizo_base::packages::common {
|
|||
append_on_no_match => false,
|
||||
}
|
||||
|
||||
file_line { 'apache_php_gc':
|
||||
ensure => present,
|
||||
path => '/etc/php/7.3/apache2/php.ini',
|
||||
line => 'session.gc_maxlifetime = 14400',
|
||||
match => '^session.gc_maxlifetime',
|
||||
append_on_no_match => false,
|
||||
}
|
||||
}
|
||||
|
||||
class rhizo_base::packages::stretch inherits rhizo_base::packages::common {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue