Magento admin login not working in chrome but works fine for firefox

前端 未结 15 2775
自闭症患者
自闭症患者 2020-12-04 14:23

I am just a newbie to the magento. I have installed magento on my localhost. After all the setup when I used the admin page to login I can\'t able to login in chrome browser

15条回答
  •  无人及你
    2020-12-04 15:16

    For Magento 2

    Instead of localhost on your WAMP please use http://127.0.0.1

    {folder path}\magento2\vendor\magento\zendframework1\library\Zend\Session.php

    Go to & Comment as mentioned

     public static function rememberUntil($seconds = 0)
        {
            if (self::$_unitTestEnabled) {
                self::regenerateId();
                return;
            }
    
            $cookieParams = session_get_cookie_params();
    
            session_set_cookie_params(
                $seconds,
                //$cookieParams['path'],
                //$cookieParams['domain'],
                //$cookieParams['secure']
                );
    
            // normally "rememberMe()" represents a security context change, so should use new session id
            self::regenerateId();
        }
    

提交回复
热议问题