![]() |
Shopping Cart (Where do you store items?) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Shopping Cart (Where do you store items?) (/showthread.php?tid=20491) |
Shopping Cart (Where do you store items?) - El Forum - 07-11-2009 [eluser]tomdelonge[/eluser] Would you store them in the sessions database in the user_data column? Just using $this->session->set_userdata($array)? That doesn't seem too great to me. What are your suggestions? (I just need a general idea to get me going) Thanks. Shopping Cart (Where do you store items?) - El Forum - 07-12-2009 [eluser]helmutbjorg[/eluser] Check out the Cart library that Ellis lab have added to the SVN which should have its official introduction in the next major release. http://dev.ellislab.com/svn/CodeIgniter/trunk/ Shopping Cart (Where do you store items?) - El Forum - 07-12-2009 [eluser]Cro_Crx[/eluser] If you're going to be storing them in CodeIgniter sessions then it may be a good idea to encrypt them (just in case). You need to remember that the session library uses cookies to store the info, so you are limited to around 4K, which may seem like a bit but when you start using encryption you can blow this out easily. Good luck. Shopping Cart (Where do you store items?) - El Forum - 07-14-2009 [eluser]tomdelonge[/eluser] Well, I think I would use database, so just the sid was stored. That way I can fit as much as I need. |