I made a login system, how do I make it show the username after login, so it goes like on the main login screen -> database check -> success page. On this success page how do I make it show the username, that was registered? I have only added
<?php
session_start();
if(!session_is_registered(myusername)){
header("location:main_login.php");
}
?>
On the 3rd page which is the success page, I need it to show the username that has logged on and other user information from the table.