I have a bunch of photos. You can click on the photo to add/remove it from a list that we want to pass to the next page. So the array keys are not fixed to values. The array is updated as the user adds or deletes the names from the list.
Now I want to pass the array of users to the next page. How? I was going to pass each user via ajax to add/delete from a php session array. That seems somehow wasteful and I thought of cookies. It's not particularly sensitive info.
But then I started wondering about using some sort of json or array serialization or something.
Can someone tell me the proper way to do this?
thanks