Seesion Timeout in Icingaweb2 Portal

Hi. Currently i have configured the session timeout for the icingaweb2 portal, but its not working.

Below is the procedure configured for the session expire

  1. Open /etc/php.ini
  2. Change the session.gc_maxlifetime value to 30 seconds

i have set the value to 30 seconds but the session is not timeout

Kindly help whether any other configuration need to changed/updated for session timeout ( icingaweb2 portal)

Icinga2 version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.10.5-1)

Copyright © 2012-2019 Icinga GmbH (
License GPLv2+: GNU GPL version 2 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

System information:
Platform: CentOS Linux
Platform version: 7 (Core)
Kernel: Linux
Kernel version: 3.10.0-1062.1.2.el7.x86_64
Architecture: x86_64

Build information:
Compiler: GNU 4.8.5
Build host: afcad697467e

Application information:

General paths:
Config directory: /etc/icinga2
Data directory: /var/lib/icinga2
Log directory: /var/log/icinga2
Cache directory: /var/cache/icinga2
Spool directory: /var/spool/icinga2
Run directory: /run/icinga2

Old paths (deprecated):
Installation root: /usr
Sysconf directory: /etc
Run directory (base): /run
Local state directory: /var

Internal paths:
Package data directory: /usr/share/icinga2
State path: /var/lib/icinga2/icinga2.state
Modified attributes path: /var/lib/icinga2/modified-attributes.conf
Objects path: /var/cache/icinga2/icinga2.debug
Vars path: /var/cache/icinga2/icinga2.vars
PID path: /run/icinga2/

Icingaweb2 uses php-fpm on CentOS, so you need to edit the php.ini from php-fpm.
You should find the ini files under /etc/opt/rh/rh-php71/, and dont forget to restart the php-fpm daemon after changing those ini files.

1 Like