Ver original<?php$id = $_GET['id'];session_start(); $carro = $_SESSION["carrito"]; unset($carro[$id]); $_SESSION['carrito'] = $carro; header("location:index.php"); ?>