I have read up on how to use Sessions in PHP but I am struggling to understand and implement it.
After looking at some examples on Google, they all seem vague and too complex. What I am trying to implement is the following:
The user logs in, when the submit button is pressed, they are redirected to another page where the user’s name will show up.
Could you help me with doing this by showing simple examples?
Start the session on each page
Set a variable in the session array.
And echo a variable, on the same or other page
Can’t make it any simpler. You should do some checkings for security.