Workaround #1 : Before Installation
Use 127.0.0.1 when you set up magento in localhost. I prefer this one because no need to make any changes in code.
Workaround #2 : After Installation
1. Go to app\code\core\Mage\Core\Model\Session\Abstract\Varien.php file
2. Go to line number 85 and replace
// session cookie params
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()
);
code snippet with
// session cookie params
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath()
);
Clear browser cache and try again. Hopefully it will work for you as well.
Thanks!!!!!!!! Enjoy Programming :)
Use 127.0.0.1 when you set up magento in localhost. I prefer this one because no need to make any changes in code.
Workaround #2 : After Installation
1. Go to app\code\core\Mage\Core\Model\Session\Abstract\Varien.php file
2. Go to line number 85 and replace
// session cookie params
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()
);
code snippet with
// session cookie params
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath()
);
Clear browser cache and try again. Hopefully it will work for you as well.
Thanks!!!!!!!! Enjoy Programming :)
Comments
Post a Comment
Thanks for your valuable comments.