I\'m having troubles logging into Magento\'s admin panel on one of our staging sites (it works 100% on our webdev servers and was working just fine not too long ago on the s
Just clear cookies and cache in web browser. It works for me perfectly.
Our site was running fine for months, then today no one could log into admin, nor could our users log into their frontend accounts. We run on a linux server.
Solution: the /magento/var/session
directory was full of sess_*
session files, so many in fact that attempting to execute rm *
failed. After a tedious whacking of session files piecemeal (rm sess_1*
, rm sess_2*
, . . . rm sess_a*
, rm sess_b*
, . . . rm sess_v*
) all of a sudden I could log into Magento again. Actually, I was able to log in after whacking just a few batches.
Theory: when the session directory has too many files, Magento may not be able to create new session files in a timely fashion, or maybe not at all.
I have been to the bottom of page 2 of gogole search results to try and solve this problem. I did everything I could find that was suggested. My friend then suggested this command line tool n98-magerun. Running php n98-magerun.phar cache:flush
solved it. I could then log in. There's loads of commands though, so if that doesn't work, maybe another will.
In new Magento Installation, do the following ->
Open the file
app/code/core/Mage/Core/Model/Session/Abstract/Varien.php.
and change the code at line 87 to this ->
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
// 'domain' => $cookie->getConfigDomain(),
// 'secure' => $cookie->isSecure(),
// 'httponly' => $cookie->getHttponly()
);
I solved just by cache clearing (execute php mage clear-cache from your Magento base directory
I can´t access to backend!
(Solution for me):
app/etc/local.xml line 55
<session_save><![CDATA[files]]></session_save>
replace
<session_save><![CDATA[db]]></session_save>