When you install Magento and provide the right admin username and password, it sends you a message about the completion of the installation process. But, when you use wrong credentials, Magento shows the message “Invalid Username or Password”.
If you have tried many times, but still can’t sign into the admin panel of your site, it may be because your site could not store cookies. Always keep in mind that localhost and “127.0.0.1” are not actual domains. Most of the browsers allow only real domains to collect cookies. This is the reason why your login attempts to the admin panel fail without giving you any clue.
Steps for resolve the admin login issue:
- Make sure you are using the correct admin username and password
- Open your Cpanel and click on File Manager,
- Open file from below path
- app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file
- Now, write 3 lines of code as shown here below
Save all the changes you have made and try to sign into the admin panel once again.