save data in Json format in a cookie

0

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?

    
asked by Nazareno Ciancaglini 27.09.2018 в 13:45
source

0 answers