The session time within Magento® 2 is a little short by default, in this small guide we tell you how to easily extend the session and logout time for Magento® 2.
Login to your Magento 2 panel using your administrator account.
Navigate to Stores → Configuration.
Navigate to Advanced → Admin → Security.
By default, Magento has the session time around 900 seconds which is around 15 minutes but you can increase this easily with any number you want.
For example, you can double this session time to 1800 so the Admin Session Lifetime is around 30 minutes. Change the setting and Save the Config to save the changes.