6

We are using magento 1.7 I believe, when you are on our website on mozilla or IE on some pcs (not all) and you navigate to a product and click "add to cart" on the product page, you are redirected to "your cart is empty" page - in chrome it works and it's only on a select number of pc's here at the office.

What I have tried includes:

  • Set cookie lifetime: 86400
  • Set cookie domain: http://www.domain.com/
  • Set cookie path: to "/" upon suggestion

I can't figure out what might be causing this, has anyone experienced this issue before?

As a side note, it started occuring on exactly the 12th of February which is 5 days ago, I am not quite sure what went down on the 12th...

Thank you

Madvillain
  • 123
  • 1
  • 1
  • 10

7 Answers7

3

Here's your problem:

Set cookie domain: http://www.domain.com/

Set your cookie domain to: .domain.com

seanbreeden
  • 2,825
  • 18
  • 24
1

I had similar problem. Changing caching setting in app/etc/local.xml solved it. I changed it session_save variable from file to db and it solved session setting problem.
<session_save><![CDATA[db]]></session_save>
Hope it helps.

0

Go to the admin panel: Sytem -> Configuration -> Web -> Session and Cookie Management

Set Cookie Lifetime to 86400 and save. The functionality will work as expected.

Also, check your form key in app/design/frontend/your_theme/default/template/checkout/cart.phtml

Code for form key: <?php echo $this->getBlockHtml('formkey'); ?>

If not available then add after this: getUrl('checkout/cart/updatePost') ?>" method="post">

Abhinav Singh
  • 2,592
  • 15
  • 14
0

I've got the same issue. The problem in my case is that my server has reach to the top of numbers of file that It can accept or manage. For fix this issue I done a cron for delete sessions files, and only save the sessions of the last month.

0

Open your database from PHPMyAdmin

Open core_config_data and change localhost to 127.0.0.1 or your ip from

web/unsecure/base_url and web/secure/base_url

It's working in my case!

Prince Patel
  • 22,708
  • 10
  • 97
  • 119
0

You could first try to solve this from your browser.

See this solution for Firefox: https://support.mozilla.org/nl/questions/1088310

Other browsers offer similar solutions.
For me, above solution worked for M 2.x.

Els den Iep
  • 866
  • 1
  • 7
  • 25
0

In my case it was cookie domain issue. Setting it's correct value resloved the issue.

Amatya Trivedi
  • 175
  • 4
  • 15