Friday 3 June 2011

Magento - Admin login problem after fresh installation

Many times it happens, that after fresh installation of magento we are unable to login with admin. Try the solution for the same.

1) Edit varien.php which located in /[Magento_Dir]/app/code/core/Mage/Core/Model/Session/Abstract/


2) Find out the below pattern & comment last three lines.

session_set_cookie_params(
$this->getCookie()->getLifetime(), $this->getCookie()->getPath()//, //$this->getCookie()->getDomain(), //$this->getCookie()->isSecure(), //$this->getCookie()->getHttponly()
);
 3) Now try to login with admin user



No comments:

Could not start a new session. Response code 500. Message: Failed to read marionette port

There is bug in firefox binary installed using apt/snap, I faced same issue when I installed firefox from apt package respository. I solved ...