cancel
Showing results for 
Search instead for 
Did you mean: 

Can't login to admin, "Invalid Form Key. Please refresh the page."

Re: Can't login to admin, "Invalid Form Key. Please refresh the page."

Hi, I got the same issue of admin login only in chrome. Please help

Re: Can't login to admin, "Invalid Form Key. Please refresh the page."

Hello Smiley Wink

- flush cache (always try it)
- check your domain name
- check the cookie domain (core_config_data table or from the bo in system > config )
- check your file permissions
- if you use varnish, check your config
- check your htaccess.

Have a nice day,

Pierre

Pierre FAY
Expert Magento à Lille.
Certifié Magento Developer Plus
http://www.pierrefay.fr/
http://www.pierrefay.com/

Re: Can't login to admin, "Invalid Form Key. Please refresh the page."

How can i access my website to do this if I can't log on?

 

Graeme

Re: Can't login to admin, "Invalid Form Key. Please refresh the page."

even if we use the private window, then also this problem persists

Re: Can't login to admin, "Invalid Form Key. Please refresh the page."

Basically, this is because of how PHP stores cookie session and how Magento needs to resolve localhost.

The easiest solution to this is to just use http://localho.st instead of http://localhost when you setup your store (or change it in base-url) if you already set it up.

Right, so what that domain does is resolve dns to your own localhost web server (neat domain to be honest) and it conforms to magento and php needs to have an extension (which localhost does not).

 

Re: Can't login to admin, "Invalid Form Key. Please refresh the page."

usamatarar884@gmail.com

Contact me.