Comment rediriger la variable d'utilisation de PHP à partir d'un autre fichier

<?php
...
$id = $user_profile['id'];
$_SESSION['id'] = $id;
header('Location: checkIfExsists.php?id='.$id);
?>
Yassine El jabri