Monday, August 16, 2010

Install magento in wamp server

Put your magento folder into www directory in wamp server, run it from your browser, after the installation when you see two button to go back end and front end. Then go to the "app\code\core\Mage\Core\Model\Session\Abstract\Varien.php"
Comment as follow
// session cookie params
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath()/*,
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()*/
);

/*if (!$cookieParams['httponly']) {
unset($cookieParams['httponly']);
if (!$cookieParams['secure']) {
unset($cookieParams['secure']);
if (!$cookieParams['domain']) {
unset($cookieParams['domain']);
}
}
}

if (isset($cookieParams['domain'])) {
$cookieParams['domain'] = $cookie->getDomain();
}*/


Now click on back end. then it will work.

No comments:

Post a Comment