$name = 'name1';
$postID = 'id1';
$name2 = 'name2';
$postID2 = 'id2';
$product = array($name, $postID);
$product2 = array($name2, $postID2);
$_SESSION['product'][] = $product;
$_SESSION['product'][] = $product2;
foreach ($_SESSION['product'] as $product) {
update_post_meta($pid, $product[0], 'Aloha');
}