luke Posted September 27, 2003 Share Posted September 27, 2003 Using dreamweaver mx and PHP I would like to be able to tell people they are signed in as **** what ever they signed in as. How do i call that information out of php to be displayed? Or to be used when they submit a recordset to track who is filling in the recordsets. Please help, you are my only hope, Luke Quote Link to comment https://forums.phpfreaks.com/topic/1074-how-do-you-display-who-you-are-signed-in-as/ Share on other sites More sharing options...
luke Posted September 27, 2003 Author Share Posted September 27, 2003 In Dreamweaver MX 2004 when you use their sign in feature they create a session variable called MM_Username that you can add to the bindings panel as a server behavior then you can drag it and drop it where ever you want it displayed. Luke Quote Link to comment https://forums.phpfreaks.com/topic/1074-how-do-you-display-who-you-are-signed-in-as/#findComment-3650 Share on other sites More sharing options...
thefisherman Posted February 1, 2004 Share Posted February 1, 2004 Hi! Sessions are probably very handy for this. I've been doing sessions handcoded, mixed with dreamweaver. A session must start for every user connected to your server. Every started session must continue on every page which needs it. A user can be session_registered, and will stay alive until the session dies, which is either through logout or the user closes the browser window. echo'ing the user (the variable) while the session is still alive, will print the user on-screen. Ok, it's more PHP than anyhitng else, but it works for me. Something like: <? session_start(); // This starts the session for the user. $id=session_id(); // This stores the session_id to $id, could be handy. session_register('user'); // Registers the user variable $user=$someone; // Puts the user's (login)name into $user and tracks it during the session. The variable $someone could come from a form text field for instance. ?> Maybe this helps Regards thefisherman Quote Link to comment https://forums.phpfreaks.com/topic/1074-how-do-you-display-who-you-are-signed-in-as/#findComment-5395 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.