.

.

Magento admin panel login not working on localhost

Step1.  Save sessions in the database

 You can accomplish this by editing the file app/etc/local.xml. Make sure you have a good backup of this file, and follow the exact syntax as below.
Locate the line starting with <session_save> and change the word files into db. So the following:
<session_save><![CDATA[files]]></session_save>
should become:
<session_save><![CDATA[db]]></session_save>
Save the file and sessions will be saved in the database instead.
Step2. Locate the folder : app/code/core/Mage/Core/Model/Session/Abstract/ and open Varien.php then go to line number 86.
There you will find the below code.
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();
}
Comment the above code in file and check admin section.


EmoticonEmoticon