how maintain sessions
Posted: Wed Mar 04, 2009 5:05 am
i wrote the following code in page
login.php
and accesing the session variable value in page
default.php
but the above code never show the out put
"WELCOME Admin"
what's a matter
login.php
Code: Select all
session_start();
$_SESSION["username"];
$username = $_POST['username'];
default.php
Code: Select all
session_start();
echo "Welcome ".$_SESSION[user];
"WELCOME Admin"
what's a matter