Skip to content
NewRedesigned blogFeedback
Jigar Karangiya

How to 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.

How to Increase admin session timeout in magento 2?
Written by
JKJigar Karangiya
Published
Reading time
1 min read

Jigar Karangiya · · 1 min read

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)

Figure 01

2) From Command Line

RunTerminal
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 🙂

Keep reading
All posts

01 · 10 min · Shares Adobe Commerce Core

Adobe Commerce Agentic Capabilities, Q4 2026

Five agentic releases for Adobe Commerce: LLM product discovery, Brand Visibility, the Shopper MCP server, Brand Concierge, and Experience Workspace. What each one does, which editions get it, and when.

10 min

03 · 3 min · Shares Adobe Commerce Core

Conditions for Collections in Magento 2

Collections in Magento 2 (Now Adobe Commerce), are among the most powerful tools for retrieving and manipulating data directly from the database.

3 min

Newsletter

New Magento tutorials, straight to your inbox

Code examples, performance tips, and fixes for common Magento issues. No spam.

Subscribe