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

Make sure you complete the procedure for Enabling global persistent sessions.

About this task

By default, the Remember Me feature is enabled in the Next.js store. If the Commerce+ Transaction server has the global persistent session disabled, the Remember Me feature needs to be disabled in the store.

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

Results

The Remember Me feature is disabled for the Next.js store.