$_SESSION['id'] = $el_id_que_quieres;
if( empty( $_SESSION['id'] ) ) { die( "El id es incorrecto" );}