简体   繁体   中英

Magento1.9 Admin Login

I spend the whole day figuring this out, but cannot solve this. I read a lot of posts about this but none of the solutions worked. After fresh install of mangeto1.9 I cannot login as admin.

I also modified my Varien.php like this

 $cookieParams = array(
            'lifetime' => $cookie->getLifetime(),
            'path'     => $cookie->getPath()
         //   'domain'   => $cookie->getConfigDomain(),
        //    'secure'   => $cookie->isSecure(),
        //    'httponly' => $cookie->getHttponly()
        );
        /*
        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();
        }
        */

In my /var/session folder sessions files are created ( but empty ).

I also tried on few browsers.

What I see is that I got a cookie for .magentoplayground.mine instead of magentoplayground.mine but I dont know how to solve this.

Further my cookie is valid regarding the lifetime.

If anyone could help, this would be great

EDIT Still not solved, from what I read the database seems not be fully installed but I cannot figure out why. Using Bitnami stack on windows shows me a lot more database entries which are missing in my case

thanks

As i understand it seems either you have entered or magento setup has wrongly inserted value for cookie domain ie '.magentoplayground.mine' instead of 'magentoplayground.mine'. I would recommend you to run following MySQL query to the database you have been using for your magento store.

UPDATE `core_config_data` SET `value` = 'magentoplayground.mine' WHERE `path` LIKE '%web/cookie/cookie_domain%' AND `scope_id` = 0;

I hope it will help you out. [Note:- Once you have updated the value please remove all cookies and cache data]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM