hotelName and username are variables set in the class, while $_SESSION is a global php variable. If your session is not set - it means u r not logged in.Says undefined, like if(isset($_SESSION['user']['id'])) { echo ""; }
And {hotelName} , {username} is what i meant from such
well the code is:hotelName and username are variables set in the class, while $_SESSION is a global php variable. If your session is not set - it means u r not logged in.
if(isset($_SESSION['user']['id'])) { include "pages/index.php"; }
else {
include ('pages/login.php');}