Im building a shopping cart
for every product that is clicked, i append them to $_SESSION and put comma
so if producct 1 is clicked, the value of the $_SESSION is 1
then if producct 2 is clicked, the value of the $_SESSION becomes 1,2
and then I explode the array for me to get each element
my problem is
since I am storing this into session,
how to remove a single element from it?
so when I click delete say on product 2
the $_SESSION becomes 1 and not 1,2
thanks!