Shopping Cart (Where do you store items?) |
[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.
[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/
[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.
[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. |
Welcome Guest, Not a member yet? Register Sign In |