Jump to content

cart|a:1:{i:0;a:3:{s:10:"product_id";s:1:"1";s:20:"product_price_number";s:1:"0"


glenelkins

Recommended Posts

does anyone know what this session string breaks down into? i cant find anything online that explains how they are put together

 

cart|a:1:{i:0;a:3:{s:10:"product_id";s:1:"1";s:20:"product_price_number";s:1:"0";s:16:"product_quantity";s:1:"1";}}

further to this, i tried the "unserialize" function on the following session string

 

cart|a:1:{s:5:"items";a:1:{i:0;a:3:{s:10:"product_id";s:1:"2";s:20:"product_price_number";s:1:"0";s:16:"product_quantity";s:1:"1";}}}theme|s:7:"default";order|a:19:{s:9:"firstName";s:0:"";s:8:"lastName";s:0:"";s:11:"companyName";s:0:"";s:5:"email";s:0:"";s:9:"telephone";s:0:"";s:6:"mobile";s:0:"";s:26:"deliveryBuildingNumberName";s:0:"";s:18:"deliveryStreetName";s:0:"";s:16:"deliveryTownCity";s:0:"";s:21:"deliveryStateProvince";s:0:"";s:15:"deliveryCountry";s:0:"";s:21:"deliveryZipPostalCode";s:0:"";s:25:"billingBuildingNumberName";s:0:"";s:17:"billingStreetName";s:0:"";s:15:"billingTownCity";s:0:"";s:20:"billingStateProvince";s:0:"";s:14:"billingCountry";s:0:"";s:20:"billingZipPostalCode";s:0:"";s:10:"formAction";s:11:"reviewOrder";}

 

 

And i get this error:

 

Notice: unserialize() [function.unserialize]: Error at offset 0 of 744 bytes in C:\xampp\htdocs\Framework\Modules\admin\Models\ordersModel.php on line 24

no this is not oscommerce its a custom application. because the users shopping cart is stored in my sessions which i also then make a copy of the serialized string into the orders table...to make it easier to manage rather than typing more insert quieries, i just want to be able to decode the string to get the values that WERE in the session

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.