I have the following dilemma suppose I have a specific json
{
id: 1,
cantidad:2,
pvp:3.4,
nombre: producto
}
and that json I save it in a cookie , after that I concatenate another json with the same characteristics, and then list the two objects .
How recommendable can this be that I just mentioned? Is it better to do that or save the data in a database and save the cookie with an id that selects everything I have from the database?