I'm initializing a variable with a value in the header.php file. I want access to that value in footer.php, but it doesn't exist upon checking. Example:
$status = true;
var_dump( $status ); // is null
What's a best practice for doing something in footer.php, or other files if they have the same behavior.