if (isset($_GET['add']) && isset($_GET['price']) && isset($_GET['qty'])){
$ITEM = array(
//Item name
'name' => $_GET['add'],
//Item Price
'price' => $_GET['price'],
//Qty wanted of item
'qty' => $_GET['qty']
);
$_SESSION['SHOPPING_CART'][] = $ITEM;
An item is added in cart when page is refresh. any one help how to remove url variable??
As Alex mentions from a http protocol perspective you should use POST requests to update your cart.
Keep in mind that the problem persists using GET or POST request. POST are even more anoying because and alert is displayed to the customer.
To avoid that refreshing the page in the browser the shopping cart gets another duplicated item you can choose for example :