After having this problem several times as I installed, and re-installed Magento, I decided to post this on my own blog for future reference.
Sometimes when using Magento with a Chrome browser the cookie functionality doesn’t work, the code modification is relatively simple.
Open the app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file and find the following code, somewhere near line 78:
$cookieParams = array(
// 'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
// 'domain' => $cookie->getConfigDomain(),
// 'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()
);
Notice the three commented out lines. That is the minimum necessary to get cookies working with Chrome. You could also just comment out the whole section, as that will work as well.
That’s all there is to it. Enjoy!
2 comments
north face jackets sale
2012/12/09 at 9:26 pm (UTC -5) Link to this comment
Superb blog you have here but I was curious if you knew of any forums that cover the same topics discussed in this article? I’d really love to be a part of online community where I can get responses from other knowledgeable individuals that share the same interest. If you have any suggestions, please let me know. Bless you!
ahillman3
2013/01/04 at 9:31 am (UTC -5) Link to this comment
There is an attempt to get a Magento specific area on stackexchange, take a look: http://area51.stackexchange.com/proposals/48872/magento