the website is like a social media.
The first php file does the log in, and it will have a variable $name1 where the username of the logged on user will be stored
I need to that same variable with the username value stored in it in another php file where I create a query containing all the posts from that user.
How can I use that variable in my second php file?