Hi All..
I want to display who has logged in ...Like Logged in as "_______"..
or like the one on the top left corner of your screen.... Hello, xxxxx
For that i have included the following code in my loginpro page..
[PHP]
session_start();
include("session.inc.php");
if (login($_POST['txtname'],$_POST['txtpass']) == TRUE)
{
session_register("username");
$_SESSION['username'] = $_POST['txtname'];
}
[/PHP]
In the other pages i have written this code
[PHP]
<?php
include("session.inc.php");
Logged in as :<?php echo $_SESSION['username']; ?>
?>
[/PHP]
I am not able to display The login Name ..
How can i solve it???