Craig Marvelley

Software and such

Magento on Windows: Unable to Log Into Admin Area

I’ve run into this issue a few times when setting Magento up on Windows, but keep forgetting how to resolve it. After the setup wizard, on attempting to log into the admin area with the correct credentials I was constantly being redirected back to the login screen with no errors to suggest why I’d been denied.

There’s some advice on the Magento forum that advocates commenting out some code relating to session cookie instantiation, but the fault seems to lie with Magento requiring a TLD in order to persist the session – therefore placing your installation at a URL like http://magento.something rather than http://magento should prevent this happening and let you access the store backend without having to hack┬ámodify┬áthe code.