jaga
Junior Member
Posts: 53
|
Post by jaga on Dec 27, 2011 3:59:50 GMT -8
Magento BackEnd Login Issue
After the magento installation, I was not able to login into admin panel with the correct username and password.
For that I have gone to the file Varien.php in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
and found the code
$cookieParams = array( 'lifetime' => $cookie->getLifetime(), 'path' => $cookie->getPath(), 'domain' => $cookie->getConfigDomain(), 'secure' => $cookie->isSecure(), 'httponly' => $cookie->getHttponly() );
and replaced with $cookieParams = array( 'lifetime' => $cookie->getLifetime(), 'path' => $cookie->getPath(), // 'domain' => $cookie->getConfigDomain(), //'secure' => $cookie->isSecure(), // 'httponly' => $cookie->getHttponly() );
Also We need to comment the following if statement. then only we can login to admin
/* 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(); }*/
I was successfully logged in to the admin panel.
|
|
|
Post by eddy86 on Mar 21, 2018 2:53:19 GMT -8
I could not log in the admin site of my Magento stores several times last year, such an annoying experience. I thought it was because the cache had not been cleared but after trying few times, using private browser as well, it still did not work. I think you faced the same with what my site had. All I did was disable the wrong cookies following the instruction at bssgeek.com/blog/magento-admin-panel-login-not-working/. Hope it helps other with same problem!
|
|