User auto logout

Hi all,

Probably the dumbest question but cant seem to find the actual timeout setting in the ini for a user. I have a dashboard that I use in full screen but the user (admin at this point) keeps getting logged out. Seems to be a login timeout setting. Could anyone point me to the setting in the ini to either turn it off completely or make it a much longer period of time?

1 Like

Was thinking couldn’t be something else that keeps logging out my admin user from my Grafana dashboard? Kicks me to login page. Haven’t been able to time it (how long before the kick)

Could be the directive token_rotation_interval_minutes… inside /etc/grafana/grafana.ini ?

The directive:

How often should auth tokens be rotated for authenticated users when being active. The default is each 10 minutes.
;token_rotation_interval_minutes = 10

Remove the semicolon and write the number of minutes you would like.

Could you test it? I am installing in this moment a new instance, saw the directive and remember this post, but I can not try it right now

1 Like

Thank you will test and report back.

That didn’t work :frowning: set it to a year (in minutes) and still keep getting logged out. First thing that happens is in chrome or edge I get the message web page is trying to close - leave or cancel. If I press leave it then goes to log on screen. Press cancel the message comes back uo

Interesting find I was editing a graph and left it open by mistake (visualization) it hasn’t logged me out… If I go back to the dashboard (a bunch of graphs) I get the browser message website wants to close the web page.

Not to sure why in dashboard mode it does this and in edit mode it doesnt

1 Like

Interesting, in edit mode do not log out… seems it could be a little bug.

Did you tried to erease all cookies and web data before test the new log uot time?

I have the same problem since a few upgrades ago and it’s driving me absolutely bonkers. Happens on Safari, Chrome and Firefox all on Mac on the latest versions.

A fix for this would be so very nice.

1 Like

So it seems to be dashboard specific. What do I mean:
I login as admin it loads my preferred dashboard automatically. After a few mins I get the logout.

If I go from the my default dashboard to say the manage dashboards screen. It doesn’t log me out. Been on the manage dashboard screen for 24hrs now and no log out.