Hi
ive been trying to get my sessions to work and im unable to echo the username.
code on userlogin;
[php] /*redirect browser */
header(“location: homepage.php”);
//set session variables
$_SESSION[“username”] = $username;
exit;
}
else {
//redirect back to logon form if not authorised
header(“Location: userlogin.html”);
exit; [/php]
code on my homepage
[php]p><?php echo 'Welcome ' . $_SESSION["username"] . 'to City Cars.'?>
Any help would be great thanks