I want to send parameters with $_SESSION. this my code --
if(isset($_SESSION)) session_start();
$username = "testing";
$_SESSION["username"] = $username;
header('Location: admin.php');
and i want to recive it on different page, my second code --
session_start();
$user = $_SESSION["username"];
echo "hello, $user" ?>
i get this massege -- Notice: Undefined index: username in Line 33 ($user = $_SESSION["username"];)