Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If you install Magento on localhost WAMP you cannot login to admin section due to cookie valiting the domain, since localhost is not a valid domain you must:
- Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php go to line 85 and find the code:// session cookie params
- $cookieParams = array(
- ‘lifetime’ => $cookie->getLifetime(),
- ‘path’ => $cookie->getPath(),
- ‘domain’ => $cookie->getConfigDomain(),
- ‘secure’ => $cookie->isSecure(),
- ‘httponly’ => $cookie->getHttponly()
- );
- comment the last three array elements as here:
- // session cookie params
- $cookieParams = array(
- ‘lifetime’ => $cookie->getLifetime(),
- ‘path’ => $cookie->getPath(),
- //’domain’ => $cookie->getConfigDomain(),
- //’secure’ => $cookie->isSecure(),
- //’httponly’ => $cookie->getHttponly()
- );
Advertisement
Add Comment
Please, Sign In to add comment