Adding remember me functionality

Topic summary

Topic: Extending “Remember me” (persistent login via cookies) for Shopify customer accounts beyond the ~24-hour session limit.

  • Constraint: Shopify does not offer a built-in way to lengthen the default session/“Remember me” period. Extending it would require custom development and careful handling of cookies, authentication, and security.

  • Workarounds suggested:
    • Accept current behavior; clearly inform customers and encourage saving login credentials in browsers.
    • Invest in a custom app or hire an expert to implement a more robust persistent login flow.
    • Use third-party/social logins (Google, Facebook, Apple) to simplify repeat sign-ins; a suggested app is Hook One Tap Login (Shopify App Store link provided).

  • Outcome/status: Original poster acknowledged the guidance and will consider the options. No final decision or implementation reported; discussion effectively concluded without a confirmed solution.

Summarized with AI on December 22. AI used: gpt-5.

Hi,

Can we enable a “Remember me” functionality for our Shopify store that allows users to stay logged in without having to log in each time? On most sites, this usually involves the use of cookies and requires some back-end work. We couldn’t find information on this in the Shopify documentation. We did find that Shopify can remember a user’s session for only about 24 hours. Is it possible to extend this period using cookies or another method?

Hello @Arjun_Aravind

Unfortunately, there’s no straightforward way to extend the “Remember Me” feature beyond Shopify’s default settings without diving into custom development. Here are some potential workarounds to consider:

  1. Given the security implications, accepting the current “Remember Me” behaviour might be best. You can inform customers about the feature’s limitations and encourage them to save their login information for future visits.
  2. You could explore custom app development or hire a Shopify expert to implement a more robust “Remember Me” solution if you have the resources and technical expertise. This would involve handling cookie management, user authentication, and security considerations.
  3. Consider integrating third-party authentication providers like Google, Facebook, or Apple. While this doesn’t directly extend the “Remember Me” feature, it can simplify the login process for returning customers. You can check out the best free social login app https://apps.shopify.com/hook-one-tap-login?

Thank You @magecomp ,

Thank you for sharing these insights. We appreciate the suggestions and will consider the options you’ve outlined. Your guidance is invaluable as we navigate this challenge.

Best regards.

1 Like