Auto log off timer

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cellact
Posts: 69
Joined: Mon May 14, 2012 7:00 am

Auto log off timer

Post by cellact »

Hi,
How can I change the automatic log off timer?

Thanks,
Tal
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Auto log off timer

Post by lmiltchev »

Open the "/etc/php.ini" file and edit the line that says:

Code: Select all

session.gc_maxlifetime = 1440
Note: This is in seconds.

Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
cellact
Posts: 69
Joined: Mon May 14, 2012 7:00 am

Re: Auto log off timer

Post by cellact »

Thanks, it worked.

For future reference, after you make changes in php.ini, you have to restart the apache service (apachectl restart) for changes to take effect.
cellact
Posts: 69
Joined: Mon May 14, 2012 7:00 am

Re: Auto log off timer

Post by cellact »

Hi again,
Unfortunately it ended up not working..

I still get 'session timed out' when I leave the computer for some time.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Auto log off timer

Post by scottwilkerson »

What did you set it to?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
cellact
Posts: 69
Joined: Mon May 14, 2012 7:00 am

Re: Auto log off timer

Post by cellact »

Some huge number. I basically don't want to get ever logged out.
There's no Max value, is it?

Today it seemed to work. I'll update if I find a pattern.
cellact
Posts: 69
Joined: Mon May 14, 2012 7:00 am

Re: Auto log off timer

Post by cellact »

It is working. dunno what happened before. Thanks :)
Locked