Can't login to Magento admin

前端 未结 12 2419
谎友^
谎友^ 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 10:01

    I had the same problem, but I was working on XAMPP on windows 7 x64.

    In Magento system - configuration - web - session cookie management change Use HTTP Only to no and Cookie Lifetime to 86400.

    I only changed the Cookie Lifetime just in case of daylight saving time may not have to be changed.

    Before the changes I could only login using Firefox and after the changes all browsers work.

    Leave Cookie Path and Cookie Domain blank.

    0 讨论(0)
  • 2020-11-30 10:02

    Delete cookies (related to your domain) from your browser setting.

    0 讨论(0)
  • 2020-11-30 10:05

    Did you erase the session storage in var directory?

    In my case, when I was playing with autorization for multistore on subdomains (changed path and domain for cookie as you did), this method helped me to drop the "bad" cookie and sucessfuly logined in admin:

    In apppath/var/session directory I've made command in shell (be careful with path, this could delete all the files in the directory)

    rm -rf /path/to/magento/var/session/*
    

    And then just clean the cookie for domain in browser.

    0 讨论(0)
  • 2020-11-30 10:06

    Check the cookie configs in core_config_data table and check if your session is being saved on db. In my case, someone just changed the cookie domain and the cookie path with a wrong value.

    You can also check this on the node in your app/etc/local.xml. If it's on db, maybe you should change do files to be able to clean the session data directly on var/session dir.

    0 讨论(0)
  • 2020-11-30 10:08

    If a login error message ("invalid password", etc.) isn't being displayed it's almost always a session cookie problem. In order to rule it our entirely, use Use your browser's cookie viewer and/or your favorite HTTP traffic sniffer and check

    1. That all the cookies have proper expiration dates after being set

    2. That the session cookie has a consistent token name/value for each request

    3. That PHP, when running through Magento, has the various session lifetime ini settings at a reasonable value

    4. That PHP can write to whatever it's using as a cookie storage medium

    5. That the server's time matches the real time, and that PHP itself has a timezone set

    0 讨论(0)
  • 2020-11-30 10:10

    If nothing works, make sure the disk quota is not exceeded. The new session cookies created under ./var/session will be zero bytes length if disk quota for the user is exceeded.

    0 讨论(0)
提交回复
热议问题