$_SESSION["carrito"][$id_producto]["id_producto"]no deberia ser:$_SESSION["carrito"]["id_producto"][$id_producto]?