I have an approve.php inside an /include directory. I have another file inside the /pop_up directory.
Approve.php
if (!isset($_SESSION['username'])) {
header("location:log_in.php");
die();
}
When i run the include('include/approve.php') code in files in the main directory, it works. When I run the include('../include/approve.php') in files in the pop_up/ directory it seems to always find that $_SESSION is not set.
Any suggestions?