Creating a Shopping Cart, and am wondering if when you add values to a session, does it overwrite the current contents in the session?
For example: $this->Session->write('ShoppingCart.id', $id); $this->Session->write('ShoppingCart.name', $name); $this->Session->write('ShoppingCart.virtual', $virtual); $this->Session->write('ShoppingCart.price', $price); Having this code, if the first time i passed an $id of 4, then next time i added an $id of 6, will 6 overwrite 4 or will be added as another row in the session? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---