Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
anybody know how magento 2 customer session implemented? Is this based on cookie expire time? Or Is this based on PHP Session? Because i encountered an issue while browsing the magento store customer gets sign out automatically.
Yes, this is set to a default of 3,600 seconds (one hour) for all customers by default.
My recommendation is to change this to a longer time, such as one day or a week.
You can set it here:
Stores --> Configuration --> Web --> Default Cookie Sessions
Here's a screenshot of it:
I hope this helps!
Required, but never shown