简体   繁体   中英

Magento customer login page redirects to itself without any error

I'm having a problem whereby Magento will redirect the user to the front end login when entering correct credentials. This seems to only happen if the user has previously opened a different store view in the same browser. I have set the cookie domain in Magento admin to be the domain of each store view. I can clear the cache on the browser login to two stores and all be well until i log out of both then back into one and I'll get the problem.

Config is set to use SID on front end, but disabled i still get the problem.

Any suggestions? I'm using Magento 1.7 community edition.

Another situation that could cause the customer login issue is the missing form_key from login template.

In order to solve this please locate the login.phtml template in your theme Go to template/customer/form/login.phtml and template/persistent/customer/form/login.phtml and add the following code in the login form

<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM