Can’t login to admin after installation of Magento

I am running Vista Home basic system, and I play Xampp, after I have installed Magento, I found I can not login the admin panel.

I found the problem is in Session, magento can not set session and always create it again, that is why logination does not work.

-Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory.

-Find the code,


-Replace above code by,


-Save it and try to login to your magento admin panel.

if u only comment the lines instead of replacing text take a good look at commas !