<?php 
session_start();
$id_produk=$_GET['id'];
unset($_SESSION['keranjang'][$id_produk]);

echo "<script>alert('produk telah dihapus');</script>";
echo "<script>location='keranjang.php';</script>";

 ?>