title: Magento can't login in admin with right username and password
body: <p>I just freshly installed <code>Magento(1.7.0.2)</code> on my localhost(LAMP). Now after installation when I wanted to go for the admin panel it asked me for the username and password. Although I used right username and password still its showing <code>Invalid User Name or Password</code>. I made clear my browser cookie but again it showed me the same problem with login. I searched over google and got something that I can login using <code>http://127.0.0.1</code> instead of <code>http://localhost</code>. But it still not working for me. I have searched over google whole day and as pe some blogs have told that just make some line comments in varien.php file, I also made comments in  varien.php file but still its not working for me(as here I am using 1.7.0.2 and in blogs they have told about 1.6.X ). I have installed magento 4 times today already but still I am facing the same problem again and again. Can someone tell me how to solve this? Any help and suggestions will be really appreciable.</p>