I am facing an issue in the magento website that whenever am trying to add anything to the cart first time when i open the browser , it shows shopping cart is empty. bit if again i add to cart the product then it goes added.
After investigating the issue it happens only suppose when i closed the browser and then all cookies got deleted automatically from browser. Then i open browser again with no cookies present, it is showing me that error of shopping cart empty. but if i keep the browser open and again try to add to cart the product from second time, then it works fine.
I have tried to increase the collie liefetime from 3600 to 604800000. It did not work. I have tried to put the value 0 also there so that cookies delete automatically on browser closed. I have tried to add cookie path to / , cookie domain to domain name , Validate HTTP user agent to yes. I have checked the server time also correct by putting a script on the website root to check it. I have tried everything whatever i got in threads of magento for the issue am getting.
So if anyone have tried anything else which i have not tried and which can really solve my issue. It will be thankful. So please reply here and let me know , am fed up from solving this issue
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!