Can't login to Magento admin

前端 未结 12 2417
谎友^
谎友^ 2020-11-30 09:31

I have magento installed in a subdirectory. www.domain.com/subdir/magento

This site worked perfectly at one point. I changed nothing, until my client said he could

12条回答
  •  有刺的猬
    2020-11-30 09:48

    I was fighting with this issue today on my local server. I couldn't login using any browser. I really didn't want to comment out any lines in core files or doing any other "dirty" solutions.

    Firstly I checked cookie set by browser. It had expiration set to 1970, so clearly it was a cookie problem.

    I checked values for cookies in magento database. In phpmyadmin I found table core_config_data, then fields with values : web/cookie/cookie_domain and web/cookie/cookie_path. They were both blank.

    My solution was to set:

    web/cookie/cookie_domain to my domain name

    and

    web/cookie/cookie_path to /.

    Example:

    your domain where you run magento is magento.local set:

    web/cookie/cookie_domain = magento.local

    and

    web/cookie/cookie_path = /

提交回复
热议问题