[Solved] Displaying username with $_SESSION[‘username’] [closed]
Your code checks, if value of key username of superglobal array SESSION isn’t empty, and if so, then it saves it’s value into variable $username. If you want to display it’s value, you can use echo($_SESSION[“username”]); to directly get it from SESSION or, when setting username from session to variable $username (as in your code) … Read more