2

Im not sure why, but customers can login with firefox but not with chrome. If I try to login with chrome, then the site just reloads and nothing changed.

There is no error, what can I try?

3
  • 1
    Try it in private browser. Sep 4, 2018 at 10:53
  • I restarted the browser, now it works again... not sure what was going on
    – Black
    Sep 4, 2018 at 10:54
  • 2
    That was something related to cookie or session. Sep 4, 2018 at 10:55

3 Answers 3

0

The answer is that your theme does not supply a variable called form_key.

Just as stated above I have to add:

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

you add it right after <ul class="form-list">

to each one of my login.phtml files for the theme.

2
  • There is a form key.
    – Black
    Sep 4, 2018 at 13:03
  • it is already added. Still i am facing issue.. Feb 3, 2020 at 8:22
0

Default cookie time is 3600 sec please make it 1 day From your admin

It's magento's default cookie time out issue

1
  • I have set it to 0 so it lasts until the browser is getting closed.
    – Black
    Sep 4, 2018 at 13:03
0

This is a known issue of Magento with Chrome browser, especially when you are using the localhost environment. To get rid of this problem, update your base url and secure base url to your local IP instead of localhost.

ie change the base url and secure base url from http://localhost/yourproject/
to http://yourlocalipaddress/yourproject/.

Eg: http://127.0.0.1/yourproject/.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.