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.
1 Answer
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!
-
1So even if i am active, customer will be logout after 1 hour? Commented Feb 21, 2017 at 18:51
-
1Yes, the Magento 2 system, by default, will keep customers logged in for one hour or keep their cart alive for a single hour. Commented Feb 21, 2017 at 18:55