Magento keeps randomly logging me out of the admin panel

Try set custom value to php session lifetime in php.ini
eg.
session.gc_maxlifetime "3600"


Magento (v2.2) was logging me out any time I tried to go to any other configuration tab in admin. Apparently it was a static signing issue.

I turned static signing off via the database, since I couldn't access the setting by clicking through the admin menus.

To do this go to 'core_config_data', then find the path named 'dev/static/sign' and set the value to '0'.

Once I changed it (with developer mode enabled) I was able to access admin config setting normally.