// // Initialize the session
session_start();
// Check if the user is already logged in, if yes then redirect him to welcome page
if(isset($_SESSION["loggedin"]) && $_SESSION["loggedin"] === true){
if(isset($_SESSION["username"]) && $_SESSION["username"] == 'Marko'){
header("location: welcome-" . $_SESSION['username'] . ".php");
} else {
header("location: welcome.php");
}
exit;
}