...

View Full Version : Display: Welcome John Smith / Logout



tomyknoker
03-31-2007, 03:18 PM
I have this php code after my first login page... But it doesn't display the user's username... Any ideas?



<p>Welcome <? echo $_SESSION['txtUserId']; ?>/ <a href="index.php">Logout</a></p>

Nightfire
03-31-2007, 03:27 PM
Is that session var set?

iLLin
03-31-2007, 03:30 PM
Man... do people even search these days? I mean there is a logged in/out topic on the main page...

tomyknoker
03-31-2007, 03:32 PM
Where is it? I did search and saw nothing...

iLLin
03-31-2007, 03:35 PM
3rd from bottom,

http://www.codingforums.com/showthread.php?t=111059

the-dream
03-31-2007, 05:47 PM
if( isset( $_SESSION['MM_Username'] ) )
{
echo 'welcome/logout';
}
else
{
echo 'register';
}

Nightfire
03-31-2007, 05:51 PM
if( isset( $_SESSION['MM_Username'] ) )
{
echo 'welcome/logout';
}
else
{
echo 'register';
}

That's not what he's wanting, if you read his post.

the-dream
03-31-2007, 05:53 PM
Sorry! My Bad!

iLLin
03-31-2007, 06:20 PM
Yea but it shows him how to check if the session var is set.

the-dream
03-31-2007, 07:59 PM
Thanks, At least someone appreciates it!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum