-1
So I want to do the following, I want when a user on my site accesses his account, his name appears on a particular site of the site, that I know how to do, I take his session and print, like this: $_Session['name'];. Only that I want to do the same in other parts of my site, how can I do?
Tried to use
session_start()
on the pages you want that data to be available? This function will make available on the global$_SESSION
the domain session data on the current page.– João Pedro Henrique
Yes, but I do this and gave, only I want his name to appear on another page, ex: when the user enters he goes to a specific page for him, I want when he goes back to the home page of the site appear his name, got?
– Pedro Lukas