To fix magento admin login failure/session problem follow these steps

1. edit /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php

2. comment out following code like

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

        if (isset($cookieParams['domain'])) {
            $cookieParams['domain'] = $cookie->getDomain();
        } */

3. search for “session_start();”
4. insert following code above session_start();

session_save_path(“/tmp”);

5. Save file and try admin login

Thanks

Advertisements