The value is product id & size id, its work to carry the value but the size appear not to be fix inside the cart.
2.php, This page for pushing value inside arrays.
Code:
switch($action){
case "add":
$_SESSION['cart'][$prod_id][$size_id]++;
break;
case "remove":