Page 1 of 1

Session time out

Posted: Wed Feb 15, 2012 5:58 am
by oz123
Hi,

Is there a way to configure the session timeout/idle timeout for my http://myserver connection ?

Thanks

Re: Session time out

Posted: Wed Feb 15, 2012 10:12 am
by scottwilkerson
What version of XI are you using?
Is it a VM or source install?
Is the date correct on the XI server?

http://support.nagios.com/wiki/index.ph ... _To_Itself

Re: Session time out

Posted: Thu Feb 16, 2012 3:06 am
by oz123
Hi,

It's Nagios XI 2011R1.6 virtual machine.
the XI server time is sync and GMT. I'm using UTC+2 time zone station to connect to it.
Almost every morning when I arrive to work I see "your session has timed out".

Thanks

Re: Session time out

Posted: Thu Feb 16, 2012 7:48 am
by scottwilkerson
No way that I know of to change that, it basically only expires if it doesn't (or cannot) make an update for 30 minutes.

Re: Session time out

Posted: Thu Feb 16, 2012 10:53 am
by oz123
Where can I see that 30 min interval ?
Because my session is idle during the day for more then 30 min and it's not disconnected.
It's disconnect only during the night when idle for more time.

Thanks

Re: Session time out

Posted: Thu Feb 16, 2012 11:35 am
by scottwilkerson
There is a setting you can modify in /etc/php.ini

Code: Select all

session.gc_maxlifetime = 1440
this is an amount of time in seconds.

then

Code: Select all

service httpd restart
During the day you may have a screen open that is running ajax calls on the website which would reset the time.

Re: Session time out

Posted: Thu Feb 16, 2012 3:50 pm
by oz123
Thank you, I'll check it out

Re: Session time out

Posted: Thu Feb 16, 2012 4:37 pm
by scottwilkerson
No problem, that should do it.