Icingaweb2: Keep session alive

Created on 29 Nov 2017  路  8Comments  路  Source: Icinga/icingaweb2

The changes from https://github.com/Icinga/icingaweb2/issues/2761 now cause your session to timeout when the tab is inactive. Even when auto-refresh is on in user settings, you are asked to login again and again and again if you don't keep the tab on top all the time.

Expected Behavior

Even on inactive tabs the session is kept alive so no re-login is needed.

Current Behavior

On inactive tabs the sessing times out rather fast, prompting you to log in quite a lot.

Possible Solution

Make the session last longer, possibly refresh just enough to keep it alive indefinetely.

  • Icinga Web 2 version and modules (System - About): 2.5.0
bug

Most helpful comment

You may increase the session timeout via session.gc_maxlifetime in your php.ini.

All 8 comments

Hi,

Thanks for the report. Instead of throttling the auto-refresh requests I opted to just pause them. This also affects our "application-state" requests which kept the session alive. We'll fix this asap.

Cheers,
Eric

The solution is of course to have at least one Icinga Web 2 tab active 馃ぃ

Which session timeout is currently influencing this timeout?
Default PHP session Timeout?

Would be really nice to have this reverted back to the old behavior, It's incredibly annoying.

You may increase the session timeout via session.gc_maxlifetime in your php.ini.

@lippserd thank you for the workaround

Hello, the workaround ist doesn麓t work in my icingaweb2.

  • change settings in /etc/php.ini from 1140 to 28800
  • restart php service

I find my mistake, we change the wrong php.ini. Now it works

Same issue here, will try the workaround next week.

Was this page helpful?
0 / 5 - 0 ratings