In this tutorial, we will check how we can increase admin session timeout in magento 2.
By default, Magento automatically logs out admin when connections are idle for a certain amount of time.
However, you can increase or decrease this interval according to your own requirements.
1) From the admin panel
You can increase the admin login session lifetime to a higher value by going to:
Stores > Settings > Configuration > Advanced > Admin > Security > Admin Session Lifetime (in seconds)
![](https://jigarkarangiya.com/wp-content/uploads/2024/04/image-5-1024x452.png)
2) From Command Line
1 php bin/magento config:set admin/security/session_lifetime 9999
3) Using Database Query
update core_config_data set value = 31536000 WHERE path = ‘admin/security/session_lifetime’
I hope this article helped you to find what you were looking for.
Bookmark it for your future reference. Do comment below if you have any other questions on that.
Do share this solution with your team.
Happy Coding 🙂