You have saved the fullName
as $_SESSION["user"]["fullname"]
:
$_SESSION["user"]["fullname"] = $user["fullname"];
But you are echoing this way:
echo $_SESSION["fullname"];
Fix it to echo the correct one:
echo $_SESSION["user"]["fullname"];
Note: You can use additional check if(isset($_SESSION["user"]["fullname"]))
so that you don't get error, when it is not actually set. But that will fix nothing until you use the correct variable / key.