Enabling and disabling persistent session for Ruby storefront
Commerce+ can be configured to enable persistent sessions for both registered and guest users. Enabling persistent sessions allows for user session-related information to be stored as permanent cookies. If persistent sessions are enabled, a customer at a Commerce+ store will be recognized on subsequent visits, even after the customer closes the browser.
Before you begin
About this task
To disable the Remember Me feature, follow the customization procedure of the Next.js store and overwrite the following components by removing the Remember Me checkbox:
- presentation/components/core/content/Login/parts/LoginChangePasswordForm.tsx
- presentation/components/core/content/Login/parts/LoginForm.tsx
- presentation/components/core/content/Register/index.tsx