One thing you will quickly notice is that after 24 minutes, your session disappears and you are prompted to log in again. From a quick glance through the code it appears they are using a very heavy handed garbage collection where they delete any sessions that are older than the php configuration variable session.gc_maxlifetime. Out of the box (on our RedHat 5.7 distro) this is configured as 1440 (1440 seconds = 24 minutes). This means that NO session can live past 24 minutes, no matter how frequently you are using it.
How to Extend the Icinga-Web Session TimeoutThere are two pieces to the Icinga-Web session: PHP max session lifetime variable and the Icinga-Web session cookie lifetime variable.
To adjust the PHP max session lifetime variable:
- Open /etc/php.ini
- Change the session.gc_maxlifetime value to something more appropriate
To adjust the Icinga-Web session cookie lifetime variable:
- Open /usr/local/icinga-web/app/config/factories.site.xml
- Adjust the <ae:parameter name="session_cookie_lifetime"> parameter to a more appropriate value