session_start(); if ($_SESSION['student'] != "yes") { header ("Location: home.php"); } $enteredusername = $_SESSION['username']; ?>