This isn't like the other topics here which complains about the magento admin login refreshes.
The point where it is different is for correct username/password it refreshes but for invalid credentials it actually gives an error message as invalid username or password.
In most cases on both occasions the login just refreshes. But for me just the correct credentials refreshes and wrong gives the error message.
I have tried every other solutions posted on other thread, but no avail. Can anybody help me out? I will be very much obliged, Thank you.
***Note: This is after a server transfer.
Best Answer
You don't list what you've tried, so it's hard to rule anything out, but here are a few to try:
app/etc/local.xml
. If it's files, just delete the contents of the var/session directory. If it's db, then truncate thecore_session
table. If you're using something more complicated like Redis or memcached, make sure it's actually installed and configured correctly, especially seeing as you say you've moved servers.disable_local_modules
totrue
inapp/etc/local.xml
. If you can now login, try switch it back tofalse
, disable all your community and local modules and then try enabling them one by one.Make sure you have the correct cookie domain set, especially if you have multiple websites. Use this SQL snippet to check what's configured:
select * from core_config_data WHERE path = 'web/cookie/cookie_domain';
Your cookie domain doesn't match your actual site domain
Mismatch between server time and local computer time, meaning cookies are instantly unset
Someone has hacked the class Mage_Core_Model_Session_Abstract_Varien. Download a copy of the Magento version your website is running from the Magento website and compare the class in there to your class.
Not enough disk space on the server, preventing session files being written
A developer has removed the formkey form element (unlikely), preventing Magento from processing the form. Look in the HTML source code of the login page for a form field called
formkey
Use n98-magerun's sys:check command to find any other issues which may be causing this behaviour
There is a login issue in Google Chrome. Set
Use HTTP only
toNo
in theSession Cookie Management
section of System, Configuration, Web. Don't do this on production servers as it is a security risk. Use this SQL snippet to update it:UPDATE core_config_data SET value = '0' WHERE path = 'web/cookie/cookie_httponly';