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.

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

KineMaster Pro Mod APK is a fully featured video editing app for Android. This app has every feature that you can expect from video editor software. KineMaster Pro APK Download 2021 Now !!

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

I'm pretty sure that this is an issue with cookies. Sometimes it happens with me as well, not only Magento but other web applications as well. However, what I found super useful is that I first use it on the local system before deploying it to the online servers. So in when I'm done with all the configuration, then either I copy the steps one by one again for the online service, or I just copy the files and store them on the online server. That's it. Btw, don't forget to check out this super interesting post here.

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

The first thing is, you should check whether you are getting this error in chrome or anyone another browser as well. If you're only getting this error in Chrome only, then definitely it's a problem related to cookies, no doubt in that. Now, you just need to clear your browser's history, and you're done. If that's not working, then try login from other browsers because it might be a new release issue in Chrome, I've faced a similar thing before. 

 

Best of luck

Regards

PrepMyCareer