General

How to Change Backend Session Timeout in Magento 2

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.

Introduction

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

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

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

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.

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]
Gaurav Jain

Gaurav Jain is Co-Founder and Adobe Certified Expert-Magento Commerce Business Practitioner. Being Computer Engineer?‍? and possessing Extensive Marketing skills he handles all kinds of customer Queries and his Happy? & Helping? Nature makes customer's day Delightful. When he isn’t working, you’ll find Gaurav Reading on Books? or Traveling?. Also, he is Speaker at Magento Meetups.

Recent Posts

How to Add Tooltip in Checkout Shipping Field in Magento 2?

Hello Magento Friends, In today’s blog, I will explain How to Add Tooltip in Checkout…

2 days ago

How to Integrate and Use MongoDB with Laravel?

MongoDB is a popular NoSQL database that offers flexibility and scalability when handling modern web…

4 days ago

NodeJS | Callback Function

In NodeJS, callbacks empower developers to execute asynchronous operations like reading files, handling requests, and…

4 days ago

How to Show SKU in Order Summary in Magento 2?

Hello Magento Friends, In today’s blog, we will learn How to Show SKU in Order…

6 days ago

Best Colors to Use for CTA Buttons

The "Buy Now" and "Add to Cart" buttons serve as the primary call-to-action (CTA) elements…

1 week ago

Magento 2: How to Save Custom Field Value to quote_address for Multi-Shipping Orders

Hello Magento Friends, In Magento 2, the checkout process allows customers to choose multiple shipping…

1 week ago