Search code examples
phpcookiesadminmagento-1.9

Connection was reset when accessing magento admin panel


I got this error when second time login to the admin panel of magento ,

frontend works with no issue ,

enter image description here

Any help is appreciated , i disabled cookie in varien.php too like as follows

$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']);
//                }
//            }
//        }

and i deleted domain cookies from firebug too .


Solution

  • There are can be a lot of reasons.

    Ussualy clear cache (project/var/cache). Also clear browser coockies.

    Check if you script has permissions to write a files into var/session or in Redis and so on.
    (It depends how you configure your session storage in admin panel)