The Saint Posted August 5, 2007 Share Posted August 5, 2007 You know when you login itll say Welcome, Name. anyone know a script for it that i can add into my current html code and i also want it to be displayed at the corner while people are browsing my site Quote Link to comment https://forums.phpfreaks.com/topic/63385-sessions-displaying-names/ Share on other sites More sharing options...
severndigital Posted August 5, 2007 Share Posted August 5, 2007 interesting question. generally i pull the name from the database and display it on the page. But if you don't want to keep hitting the base for the name everytime you click a page. just put it in a session and call that. don't forget to unset() the session variable when they logout unless you are using that session var on the logout page. you can do either one of these in about 5 lines of code. Quote Link to comment https://forums.phpfreaks.com/topic/63385-sessions-displaying-names/#findComment-315955 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.