In one of my php files, DataBase.php, I have a function called logIn where I set $_SESSION[‘username’].
I have another php file, api.php, where