Magento 1 Invalid Form Key

When login to Magento 1 Admin area, i get an error

Invalid Form Key. Please refresh the page.

magento 1 login error

This is because the value of web/cookie/cookie_domain set wrong. This should be the current domain name.

In this case, the domain name was different.

To see the value, you can run

You can leave cookie domain value empty with command

Or just delete the entry from MySQL table core_config_data with SQL commands

Once this is done, you need to clear the cache with the command

Also clear browser cache or test in a private (incognito) browser

See Magento

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *