I’m building a shopping cart,and have to store the product list that user has chosen before in SESSION by using Yii::app()->user->setState() . I wonder which kind of data is better in this situation ?
Storing in JSON: by this way, I have to json_encode and json_decode each the set and get. Storing in array
My question is :
Thinking about performance, which is better in Yii ?