Skip to content
Padhmanaban R
SSE & Blogger from Bengaluru, India. Strong expertise in React JS, React Native, JavaScript, LAMP Stack & Web Development.
  • Home Page
  • React JS
  • PHP/MySQL
  • Programming Quiz
  • Solutions
  • Archive
  • Contact Me

Posts

Magento: Invalid form key. please refresh the page error

May 13, 2017 Padhmanaban
Magento Admin Invalid Key Issue
MAGENTO LOGIN SCREEN

Magento Admin panel throws error Invalid form key. please refresh the page.  This issue happen through number of ways, so I will guide some points to sort out these.

  • Completely clear the /var/session and /var/cache folder
  • Clear your browser cache and cookies
  • Update proper domain value in core_config_data table where path is web/cookie/cookie_domain
  • Still your facing the issue, comment below line from app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file line between 87 to 105
// session cookie params
$cookieParams = array(
    'lifetime' => $cookie->getLifetime(),
    'path'     => $cookie->getPath(),
    'domain'   => $cookie->getConfigDomain(),
    'secure'   => $cookie->isSecure(),
    'httponly' => $cookie->getHttponly()
);

if (!$cookieParams['httponly']) {
    unset($cookieParams['httponly']);
    if (!$cookieParams['secure']) {
        unset($cookieParams['secure']);
        if (!$cookieParams['domain']) {
            unset($cookieParams['domain']);
        }
    }
}

Share this:

  • LinkedIn
  • Twitter
  • Pinterest
  • Email
Posted in: Solutions Filed under: Invalid form key error, Invalid form key issue, Invalid form key magento admin, magento, magento admin issue, magento admin login error, magento invalid form key, magento login error, magento login issue, magento session

Post navigation

← Magento: Change Theme Using Controller
JQuery | $(…).flexslider is not a function →
Copyright © 2023 Padhmanaban R
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.