{"id":690,"date":"2018-06-09T16:36:56","date_gmt":"2018-06-09T14:36:56","guid":{"rendered":"https:\/\/www.milkycode.com\/?p=690"},"modified":"2025-03-03T16:50:20","modified_gmt":"2025-03-03T15:50:20","slug":"magento-admin-login-invalid-form-key","status":"publish","type":"post","link":"https:\/\/www.milkycode.com\/en\/magento-admin-login-invalid-form-key\/","title":{"rendered":"Magento Admin-Login: invalid form key"},"content":{"rendered":"<p>Sometimes there is a problem that you can no longer log in to the Magento backend, even though you have entered the user and password correctly. You are redirected to the login again and again. In this case you get the error message <strong>\"incorrect form key\" (invalid form key)<\/strong>. This can occur after patches or when migrating the store to another server.<\/p>\n<p>The reason for this error is the form validation built into Magento. Each form has a hidden \"form key\". This is unique for each call, so an attacker\/bot cannot send the same form multiple times. This security check takes place in Magento not only for normal forms, but also for login or registration.<\/p>\n<p>In most cases, the only option in this case is to make an adjustment via the database.<\/p>\n<p>The following steps must be carried out to rectify the error:<\/p>\n<ol>\n<li>Login to the database via phpMyAdmin and execute the following command:\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">DELETE FROM core_config_data WHERE path='web\/cookie\/cookie_domain';<\/pre>\n<\/li>\n<li>Deleting the cache via the file system:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">rm -rf var\/cache\/*<\/pre>\n<\/li>\n<\/ol>\n<p>The problem should be solved after reloading the login screen.<\/p>","protected":false},"excerpt":{"rendered":"<p>Manchmal gibt es das Problem, dass man sich nicht mehr im Backend von Magento einloggen kann, obwohl Benutzer und Passwort korrekt eingegeben wurden. Man wird immer wieder zum Login weitergeleitet. In diesem Fall bekommt man die Fehlermeldung &#8222;falscher Form-Key&#8220; (invalid form key). Dies kann nach Patches auftreten, oder auch, wenn man den Shop auf einen [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1571,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[42,3],"class_list":["post-690","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-1","tag-fehler","tag-magento-1"],"featured_image_src":{"landsacpe":["https:\/\/www.milkycode.com\/wp-content\/uploads\/2025\/03\/magento-admin-panel-invalid-form-key-1105x445.png",1105,445,true],"list":["https:\/\/www.milkycode.com\/wp-content\/uploads\/2025\/03\/magento-admin-panel-invalid-form-key-463x348.png",463,348,true],"medium":["https:\/\/www.milkycode.com\/wp-content\/uploads\/2025\/03\/magento-admin-panel-invalid-form-key-300x175.png",300,175,true],"full":["https:\/\/www.milkycode.com\/wp-content\/uploads\/2025\/03\/magento-admin-panel-invalid-form-key.png",1105,643,false]},"_links":{"self":[{"href":"https:\/\/www.milkycode.com\/en\/wp-json\/wp\/v2\/posts\/690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milkycode.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milkycode.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milkycode.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milkycode.com\/en\/wp-json\/wp\/v2\/comments?post=690"}],"version-history":[{"count":7,"href":"https:\/\/www.milkycode.com\/en\/wp-json\/wp\/v2\/posts\/690\/revisions"}],"predecessor-version":[{"id":1576,"href":"https:\/\/www.milkycode.com\/en\/wp-json\/wp\/v2\/posts\/690\/revisions\/1576"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.milkycode.com\/en\/wp-json\/wp\/v2\/media\/1571"}],"wp:attachment":[{"href":"https:\/\/www.milkycode.com\/en\/wp-json\/wp\/v2\/media?parent=690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milkycode.com\/en\/wp-json\/wp\/v2\/categories?post=690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milkycode.com\/en\/wp-json\/wp\/v2\/tags?post=690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}