Hello Magento Folks,

Last time, We learned about Magento 2: How To Configure Elasticsearch for Magento 2 stores.

Today, I am here to explain to you How to Change Backend Session Time Out in Magento 2.


The best feature offered by Magento 2 gives you an option to set backend session timeout in seconds. After the introduction of Magento 2.1, it collaborates with the browser’s session cookie, therefore when you close your system browser session is automatically terminated. Thus, for session timeout, every store owner can set according to their need.

Importance of Backend Session Time Out In Magento 2

The massive problem in session time out is if you have less time for session timeout, then to log in every time is too annoying for any person. So, to overcome this problem, you need to change the session timeout from the backend. Almost the preference will be like backend session timeout can be nearly 24 hours. By increasing time, the person using admin will have to login one time per day, which will be more helpful.

Steps for Configuration

Step 1: Primarily, open the admin panel on your Magento 2 backend and open the stores and click on the configuration option

admin panel on your Magento 2

Step 2: After clicking on the configuration option click on Advanced and inside that tap on Admin option. Configuration

Step 3: Now, click on the security option to explore as displayed in the below image.

click on the security option

Step 4: After exploring the security option, you will now able to view the “Admin Session Lifetime (seconds)” option in which you can set your session timeout according to your needs.

Admin Session Lifetime seconds

Step 5: Click on the Save Config option.

So, by following the above steps, you will be able to change the backend session timeout of your Magento 2 store.

Remarks: There some valid values for setting up session timeout, which are between 60 seconds to 31536000 seconds. In which we can say that the valid minimum limit is One Minute, and the maximum valid limit is One Year.

Over to You!

Certainly, if you have more work in Magento Backend, then there is a need for a long session timeout. If there is less work, then there is no need for the long session for your backend. Therefore you can set less timeout in your backend accordingly.

So this is it for today. If you face any issues while applying the above steps, then feel free to contact our support team for any help.

Please let us know if you have any specific topics for us to write the blog in the comments section below.

Happy Reading?

Click to rate this post!
[Total: 2 Average: 5]