JAY BHARAT, software enginer, php programmers, software engineer, jay bharat ,9844542127

 
»
S
I
D
E
B
A
R
«
magento admin login problem
April 20th, 2009 by admin

After install magento in your localhost if you want to login or go to admin panel :
http://localhost/magento/admin
then some time you faces problem to login
this is not admin id password problem if you give correct admin and password.
Then what is prblem and how you solved.
Problem solved by this way :
http://127.0.0.1/magento/admin
or try

http://127.0.0.1/magento/index.php/admin

or

http://localhost/magento/index.php/admin

Problem should solve.

But in new release of magento it may not’ solve then another way of solution is

1.Try to open admin panel in opera or Apple-Safari it will work perfect here.

Third way and efficient good way

app\code\core\Mage\Core\Model\Session\Abstract\Varien.php
Go to line 96 or locate the code similar below:
if (isset($cookieParams['domain'])) {
    $cookieParams['domain'] = $cookie->getDomain();
Replace the code found in line 96 with this one:
if (isset($cookieParams['domain']) && !in_array("127.0.0.1", self::getValidatorData())) {
}more see:
http://mysillypointofview.wordpress.com/2010/03/24/how-to-fix-magentos-admin-login-failing-no-error-message-on-localhost/

7 Responses  
Nishit Manvar writes:
May 24th, 2010 at 5:31 pm

Thanx aLOT ….

vandana writes:
May 3rd, 2010 at 11:24 am

Hi ,
Thanks a lot ! I could log in to admin at localhost
Thanks:)
vandana

Gopal writes:
April 17th, 2010 at 1:07 pm

hi,

lots thanks to you.

Thanks
Gopal
gplrathod@gmail.com

Richard Feraro writes:
March 26th, 2010 at 5:22 am
Laura writes:
March 25th, 2010 at 1:11 am

This solution is for magento-1.4.0.1:

- Go to yourmagentodir/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php

- and comment just line 100 like this

// call_user_func_array(’session_set_cookie_params’, $cookieParams);

Trust me, It will work after that!

admin writes:
June 30th, 2009 at 3:02 pm
Letsnurture writes:
June 30th, 2009 at 11:57 am

Hi,

I’m having problem to access admin’s resources in Magento at my local machine. I dont know what makes it to not work. I tried to use your solution to write 127.0.0.1 in place of ‘localhost’ but if fail and page is redirected to “localhost:myport”.

Is there any fix available?

Thanks in advance
Web-Farmer@letsnurture.com

Leave a Reply