We use Magento 1.7 and recently installed patch SUPEE-10570v2. After that when we use admin, some time it's session out and redirect to the front-end home page(not admin login page). Please let me know any one experience this issue and how can I fix this.


Here is the change that needs to be applied.

overrides file by copy "app/code/core/Mage/Core/Model/Session.php" to "app/code/local/Mage/Core/Model/Session.php" and write below code in it.

class Mage_Core_Model_Session extends Mage_Core_Model_Session_Abstract
public function __construct($data=array())
    $name = isset($data['name']) ? $data['name'] : null;
    $this->init('core', $name);

 * Retrieve Session Form Key
 * @return string A 16 bit unique key for forms
public function getFormKey()
    if (!$this->getData('_form_key')) {
        //$this->setData('_form_key', Mage::helper('core')->getRandomString(16));
    return $this->getData('_form_key');

public function renewFormKey()
    $this->setData('_form_key', Mage::helper('core')->getRandomString(16));
public function validateFormKey($formKey)
    return ($formKey === $this->getFormKey());
  • Those changes are already applied with patch 7405. Normally we maintain all patches. we faced this issue after install SUPEE-10570 – Sathyajith Apr 10 '18 at 10:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.