<?php
session_start();
// Declarar variables de sesión globales
$_SESSION['id_venta'] = $_POST['id_venta'];
/*$_SESSION['llegadaz'] = $_POST['llegadaz'];
$_SESSION['diaz'] = $_POST['diaz'];
$_SESSION['tiempoz'] = $_POST['tiempoz'];
$_SESSION['placaz'] = $_POST['placaz'];
$_SESSION['choferez1'] = $_POST['choferez1'];
$_SESSION['choferez2'] = $_POST['choferez2'];
$_SESSION['termsal'] = $_POST['termsal'];
$_SESSION['termsal2'] = $_POST['termsal2'];
$_SESSION['termsal3'] = $_POST['termsal3'];
$_SESSION['termsal4'] = $_POST['termsal4'];
$_SESSION['termsal5'] = $_POST['termsal5'];
$_SESSION['termsal6'] = $_POST['termsal6'];
$_SESSION['termsal7'] = $_POST['termsal7'];
$_SESSION['termsal8'] = $_POST['termsal8'];
$_SESSION['termsal9'] = $_POST['termsal9'];
$_SESSION['termsal10'] = $_POST['termsal10'];
$_SESSION['termsal11'] = $_POST['termsal11'];
$_SESSION['termsal12'] = $_POST['termsal12'];
$_SESSION['termsal13'] = $_POST['termsal13'];*/
/// Usar las variables de sesión
if (isset($_SESSION['id_venta'])) {
    echo "Imprimir, " . $_SESSION['id_venta'] . " - " . $_SESSION['id_venta'] . " - " . $_SESSION['id_venta'] . " - " . $_SESSION['id_venta'] . " - " . $_SESSION['id_venta'] . " - " . $_SESSION['id_venta'] . " - " . $_SESSION['id_venta'];
} else {
    echo "No has iniciado sesión";
}