Try the Demo

Magento Forum

   
Page 2 of 2
cannot log in in the admin dashboard
 
yesvinnie
Jr. Member
 
Total Posts:  22
Joined:  2009-08-06
 

What if it’s not localhost? I am getting the same problem on a hosted site. Also, the problem does not occur when I use a Windows XP machine. I just got a Windows 7 Starter edition netbook. And it’s only happening on that.

Please help. The above solution looks great but won’t help me.

Thanks in advance

 
Magento Community Magento Community
Magento Community
Magento Community
 
Richard Feraro
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2009-02-12
Manila
 
yesvinnie - 05 May 2010 08:38 AM

What if it’s not localhost? I am getting the same problem on a hosted site. Also, the problem does not occur when I use a Windows XP machine. I just got a Windows 7 Starter edition netbook. And it’s only happening on that.

Please help. The above solution looks great but won’t help me.

Thanks in advance

Are you using XAMPP in your local setup?

 Signature 

My Silly Point of View

 
Magento Community Magento Community
Magento Community
Magento Community
 
yesvinnie
Jr. Member
 
Total Posts:  22
Joined:  2009-08-06
 

I should have been clearer. I am using a web browser to access my sites on the hosting service servers somewhere else in the country. When I use the browsers on my windows XP machines to access them I do not have a problem logging in. But, when I use my new Windows 7 machine I cannot log in at all.

I thought it was a cookie problem so I checked the browser options/settings. They are fine, I even added to allow the cookies from my sites. Also, I checked my security software. It is fine too. Basically all the cookies from other sites are set properly except from my hosted site. The cookie is lost immediately after being set, I cannot figure out why. Not sure if it has anything to do with being on a shared-server.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Richard Feraro
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2009-02-12
Manila
 
yesvinnie - 10 May 2010 05:07 AM

I should have been clearer. I am using a web browser to access my sites on the hosting service servers somewhere else in the country. When I use the browsers on my windows XP machines to access them I do not have a problem logging in. But, when I use my new Windows 7 machine I cannot log in at all.

I thought it was a cookie problem so I checked the browser options/settings. They are fine, I even added to allow the cookies from my sites. Also, I checked my security software. It is fine too. Basically all the cookies from other sites are set properly except from my hosted site. The cookie is lost immediately after being set, I cannot figure out why. Not sure if it has anything to do with being on a shared-server.

Thanks

How about your SSL certificates? Is it valid or self-signed? Did you enable the use secure login in the frontend?

 Signature 

My Silly Point of View

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jenagan
Jr. Member
 
Total Posts:  3
Joined:  2012-04-27
 

Edit in Varien.php file ( Path: app\\code\\core\\Mage\\Core\\Model\\Session\\Abstract ) the following. In session cookie params

// session cookie params
        $cookieParams = array(
            
'lifetime' => $cookie->getLifetime(),
            
'path'     => $cookie->getPath(),
            
'domain'   => null,
            
'secure'   => null,
            
'httponly' => null
        
);

or comments them. ( // )
It works for me too.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sunilshah2711
Jr. Member
 
Total Posts:  1
Joined:  2012-11-03
 

The Issue is, Most browsers won’t accept cookies from a localhost, and that is the only issue you are having.

To solve the issue do the following changes in Varien.php. The path for Varien.php isapp/code/core/Mage/Core/Model/Session/Abstract.

Find the code below in Varien.php file, started on line 96

if (isset($cookieParams[’domain’])) {

Replace above code with following :

if (isset($cookieParams[’domain’]) && !in_array("127.0.0.1", self::getValidatorData())) {

Source : http://dumpnshare.irfanansari.com/magento/administrator-login-failed-after-sucessfull-magento-installation-on-localhost/

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 2 of 2