I am having problems setting session variables.
I have this code;
session_start();
$_SESSION['password'] = $password;
$_SESSION['username'] = $username;
$_SESSION['UserId'] = $row1[0];
I know that $password has a valid output on this page as I can echo it out, likewise $username.
but when I try to echo the following code on the next page
echo "$_SESSION['password']";
it does not output anything
WHY !?!
I know this means that the session variables aren't being carried over to the next page, but I cannot see why
thanks in advance