Session timeout - Google Chrome

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Session timeout - Google Chrome

Post by rferebee »

Hello team,

I'm trying to switch over to using Google Chrome exclusively due to multiple issues with Internet Explorer, but one issue I'm running into specifically with Log Server involves what seems like my session timing out due to inactivity.

I tend to stay logged into Log Server all day since it's a major portion of my job responsibilities and this was never a problem with IE, but in Chrome after what seems like 30 or so minutes when I navigate back to my Log Server tab I see a yellow triangle in the upper right hand corner of the console window next to my username and if I attempt to reload the page by clicking Home in the menu bar, I automatically get logged out.

If I hover over the yellow triangle it says: "Could not authenticate. Invalid token given."

There does not seem to be a session time setting for Log Server in the GUI like there is in XI, but is there a way for me to keep this behavior from occurring?

Thank you!
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Session timeout - Google Chrome

Post by mbellerue »

I'm not running into this on Log Server 2.1.2, but I may not have the same configuration as you. A couple of questions to try and get our systems in line with each other.

Are you logged into Chrome with a Gmail or Google Business account?
Are you running SSL on the Log Server web interface?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Session timeout - Google Chrome

Post by rferebee »

I am not logged into Chrome with any accounts.

We are not currently utilizing SSL in the console, although I wouldn't mind enabling it.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Session timeout - Google Chrome

Post by scottwilkerson »

You can add the following line to /var/www/html/nagioslogserver/application/config/config.local.php which should allow you session to stay connected for 24 hours

Code: Select all

$config['sess_expiration'] = 86400;
If you want the session to never expire you can set it to

Code: Select all

$config['sess_expiration'] = 0;
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
rferebee
Posts: 733
Joined: Wed Jul 11, 2018 11:37 am

Re: Session timeout - Google Chrome

Post by rferebee »

Perfect, thank you. I made the change.

You can lock this up.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Session timeout - Google Chrome

Post by scottwilkerson »

rferebee wrote:Perfect, thank you. I made the change.

You can lock this up.
great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked