Magento Customer login does not work in Chrome browser

Magento Customer login does not work in Chrome browser

Problem description

Customers can not log in into Magento with Chrome browser, the login page just reloads without any errors or warnings.

But when customer logins in other browsers and admin back-end login function properly.


Cause

Magento sets an extra session cookie that overrides new cookies set by new sessions, as a result, session expires right after login.


Solution

Navigate to System > Configuration > Web > Session Cookie Management and set the following settings:


Cookie Lifetime: 7200
Cookie Path: /
Cookie Domain: example.com
Use HTTP Only: Yes
Cookie restriction mode: No
Cookie Path: /
Cookie Domain: example.com
Use HTTP Only: Yes
Cookie restriction mode: No

- After this, Flush Magento cache and delete the domain cookies in the Chrome browser. Refer to the above link to check how to

  clear cookies :       https://support.google.com/chrome/answer/95647?hl=en

- Refresh/reload magento customer login page and try to log in as usual.
    • Related Articles

    • How to configure base URLs for a Magento 1 website?

      In this article, we are going to change the base URLs of a Magento 1 website, using the swiss army knife for Magento developers, sysadmins and devops i.e. n98-magerun. Base URLs can be also changed from the Magento Site backend as well as from the ...
    • How to configure base URLs for a Magento 2 website?

      In this article, we are going to change the base URLs of a Magento 2 website, using the swiss army knife for Magento developers, sysadmins and devops i.e. n98-magerun2. Base URLs can be also changed from the Magento Site backend as well as from the ...
    • How to setup/add email account in cPanel?

      Based on the themes, this article is divided into two parts : For cPanel Basic Theme For cPanel Retro Theme For cPanel Basic Theme : 1. Login to your cPanel account and under the Email section, click on Email Accounts menu. 2. Navigate to ...
    • Switching modes in magento2

      An overview To improve security and ease-of-use, magento has built-in commands that switches magento modes from developer to production and vice versa. Production mode also has better performance because static view files are populated in the ...
    • Compiling code and deploying static view files in magento2

      Code compilation To compile the code in magento2, we use setup:di:compile command which performs the following tasks : Application code generation – for factories, proxies Interceptor generation – improve code generation of interceptors Interception ...