Customer Timeout Popup
Nobody likes losing a cart full of products because their session expired silently. This module shows customers a visible countdown notification before their session times out, giving them a chance to stay logged in with a single click.
The module hooks into Magento's existing cookie lifetime configuration — no duplicate settings to manage. When the session is about to expire, a non-intrusive popup appears with a countdown timer and a "Stay logged in" button.
GitHub: qoliber/m2-customer-timeout-popup
Installation
composer require qoliber/module-customer-timeout
bin/magento setup:upgradeFeatures
- Configurable countdown — Set exactly how many seconds before logout the popup should appear
- Admin toggle — Enable or disable the feature via Stores → Configuration without code changes
- Cookie-based timing — Uses Magento's native cookie lifetime settings, so timeout is always accurate
- Non-intrusive UX — Popup appears as an overlay, doesn't redirect or block the page
Configuration
Navigate to Stores → Configuration → Customers → Customer Configuration → Timeout Popup:
- Enable Module — Yes/No
- Countdown Duration — Number of seconds to show the countdown (e.g. 60 for a 1-minute warning)
The session length itself is controlled by Magento's standard cookie lifetime setting at Stores → Configuration → General → Web → Session Cookie Management.
This module uses Luma-based frontend templates. It is currently not compatible with the Hyvä theme framework. A Hyvä-compatible version is planned.