Magento cookie problem [fixed]
There can be quite a few reasons why Magento issues the “enable cookies” page, it is usually a slight server misconfiguration, but can sometimes be down to a caching system or incorrect admin settings. Firefox seems to be untainted by this problem and troopers on regardless. IE, Opera and Chrome however, seem to have issues.
As there are many ways this problem can present itself, I think it’s a good idea to run through what worked for us, and then other possible solutions if that doesn’t fix it for you.
1. Synchronize the system clock
These instructions are for CentOS 5.*; how to install and configure NTP under CentOS Linux 5 server to synchronize the system clock.
Login as the root user
Type the following command to install ntp
# yum install ntp
Turn on service
# chkconfig ntpd on
Synchronize the system clock with 0.pool.ntp.org server:
# ntpdate pool.ntp.org
Start the NTP:
# /etc/init.d/ntpd start
Now check whether this has solved the cookie problem…
If not, let’s keep trying with the following:
2. Change cookie lifetime
Go to: Admin Panel -> System -> Configuration -> General-> Web-> Session Cookie Management and change COOKIE LIFETIME to 5400
(5400 seconds=90 minutes)
3. Remove Cookie params
Quite a drastic measure, so make sure to comment out, rather than delete:
Go to: Magento Folder/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
and comment out the following that starts at about line 78 as you see below.
I hoped that has helped you solve the Magento cookie problem, please leave a note to let us know how you get on.