Admin login issue for magento in local system ( localhost )

To fix the admin login issue you have to edit /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file and comment out the line from 99 to 101 in magento (line number specified in version 1.9.1.1 may change according to versions).

Example :
// session cookie params
$cookieParams = array(
‘lifetime’ => $cookie->getLifetime(),
‘path’ => $cookie->getPath()/*,
‘domain’ => $cookie->getConfigDomain(),
‘secure’ => $cookie->isSecure(),
‘httponly’ => $cookie->getHttponly()*/
);