Good Evening!

I want to create a "basket" for a simple shop. The chosen product
should be stored into a session-variable until the checkout procedure.
I am asking if it (and how!) it is possible to store an array in a
cake-session?

As an Example: the user puts the first object into his basket:
$this->Session->write('basket_26[], $firstProduct);  // note: 26
should mark the user-Id

Then the user puts another object into his basket:
$this->Session->write('basket_26[], $secondProduct);

As far as I know, the first parameter can only be a string - is that
right? Or is there any other possibility to save more information in a
single session variable?

Thanks a lot!

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to