CodeIgniter Forums
Cart Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: Cart Library (/thread-76805.html)



Cart Library - sg007 - 06-22-2020

Can you please tell me Why My Cart Goes Empty Automatically After some time ???


RE: Cart Library - InsiteFX - 06-22-2020

Your sessions are being destroyed.

Check the time outs on your sessions in the config file.


RE: Cart Library - sg007 - 06-23-2020

(06-22-2020, 03:59 AM)InsiteFX Wrote: Your sessions are being destroyed.

Check the time outs on your sessions in the config file.
Can you please guide me about this Like I want to store the cart info but not session unlimited time.


RE: Cart Library - InsiteFX - 06-23-2020

If you need to keep the cart information for reloading after a user exits the application
you would need to store the cart information into the database.


RE: Cart Library - Leo - 06-27-2020

What about cookies? Then you can use javascript. And, during check-out, you can cross-reference the product-info in the cookie-cart with your product-info in the database - to make sure that even if they tampered with the cookie it doesn't affect your store.