After i add some products to card and i open cart page it shows "the cart is empty". it just happens in chrome and opera; but every thing is ok in firefox. i have checked cookie management and every thing was fine there. what is the problem? *my magento is running on local server.


1 Answer 1


Sounds like a cookie or session issue. It's hard to say with out more info so here are a few suggestions to start debugging:

  • Use the chrome developer tools and inspect your cookies. There should be a cookie named "frontend" with a value of jumbled letters / numbers.
  • Check your session storage (var/session/) for a file named sess_XXXXXXX where XXXXXXX matches the value for the frontend cookie.

If those 2 things exist, it should work.

  • var/session/ is empty. im using magento on local.
    – Moh3n
    Feb 25, 2015 at 11:05
  • have you given 777 permission to var/ folder ? if don't then give it.
    – liyakat
    Feb 25, 2015 at 11:55
  • Check your app/etc/local.xml file. There should be a part that indicates where your session files should be stored whether that be files, database, memcache, etc. If not already set to files try changing it to files. Easier to debug. The code looks like this: <session_save><![CDATA[files]]></session_save>
    – Winston
    Feb 26, 2015 at 16:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.