Modify Admin Session Lifetime in Magento 2: A Detailed Guide

The Most Popular Extension Builder for Magento 2

With a big catalog of 224+ extensions for your online store

Set Admin Session Lifetime Magento 2 - Created and developed specially for Magento 2, the Admin functions as a security measure for your online store. The password-protected back office facilitates the administrative work by allowing you to manage orders, catalog, content, and configurations effectively. The Admin times out after 900 seconds, or fifteen minutes of keyboard inactivity by default. If you’re using this Security extension, a warning email will be sent.


Security for Magento 2

Protect your store from cyber threats with Mageplaza's top-notch security services

Check it out!

However, you can always make adjustments to the lifetime of the session to fit your work style.

You can set Admin Session Lifetime in Magento 2 by following these following steps:

To set Admin Session Lifetime in Magento 2

Site Audit Services

Mageplaza helps identify any flaws & weaknesses in your website and fix them before they start costing you a fortune.

Explore More
Site Audit Services by Mageplaza

Step 1: Open the Magento Security session

  • Log in to your admin account.
  • On the Admin sidebar, click Stores > Settings: Configuration.
  • In the panel on the left, select Advanced > Admin.
  • Quickly look for the Security section, which is right below Admin Base URL.

Step 2: Enter the Admin session lifetime which is measured in seconds

Expand the Security section. Then do the following:

Admin Session Lifetime

  • Next to Admin Session Lifetime (seconds) field, erase the tick in the box before Use system value to remove the default session lifetime.
  • Then enter your preferred number of seconds during which a session remains active before timing out.

Step 3: Save the change

Once you have finished setting the ideal length of session lifetime, tap Save Config. Done!

Related Post

Looking for
Customization & Development Services?

8+ years of experiences in e-commerce & Magento has prepared us for any challenges, so that we can lead you to your success.

Get free consultant
development service

Explore Our Products:

People also searched for


Stay in the know

Get special offers on the latest news from Mageplaza.

Earn $10 in reward now!

Earn $10 in reward now!

go up