6
votes

After adding products to the shopping cart and clicking “Checkout”, the OnePage Checkout page opens. It allows you to select whether to check out as a Guest or Registered User. After you have selected an option, it briefly shows up the “Billing Details” pane, before suddenly redirecting to another page which displays the message “Shopping Cart is empty”, and any items you had in your cart are removed. This problem is only occurring in Internet Explorer 8 and below. Website URL is http://tastesfromaroundnz.co.nz . Cookie lifetime is set to 86400, and all of the Session Validation Settings are set to “No”. Magento version is 1.6.2

Anyone able to help us with this problem? Thanks in advance.

2
Which extensions have you installed? Anything in your error log? What custom modifications have you done that could be related? - Zachary Schuessler
We have installed the following extensions: Auctionmaid_Matrxrate, Fontis_Newzealand, MageBase_DpsPaymentExpress and DerModPro_BasePrice. The only thing showing up in the error log is this: File does not exist: /home/tastesnz/public_html/skin/frontend/default/mt_Lanius/images/window_overlay.png, referer: tastesfromaroundnz.co.nz/checkout/onepage - Te Riu Warren

2 Answers

16
votes

SOLVED: This is due to the cookie problem, not in browser but in Magento itself. In Magento, by default cookie’s lifetime is set to 3600 (1 hour). But if the end users computer time runs ahead of server’s time, cookies will not get set for magento frontend as well as backend. For example, end user’s computer time is 1 hour forward than server’s time, that means the cookie (holding user’s session id) will expire as soon as user logs in or tries to add an item.

To solve this, set cookie’s lifetime to 86400 (1 day) instead of 1 hour and everything will work as expected. You can also set cookie lifetime to 0, so that cookie will only expire when the user’s browser is closed.

Go to: Magento backend -> Sytem -> Configuration -> Web -> Session and Cookie Management Set cookie lifetime to 86400 and save. Everything will work as expected now.

0
votes

I noticed there were two cookies: one for domain.com and another for www.domain.com. I had to the change the cookie domain to www.domain.com, and the 2nd cookie disappeared and it now works.