I start a session on checklogin.php like this:
PHP Code:
session_start();
    
$data mysql_fetch_array($result);
    
$_SESSION['uid'] = $data["uid"];
    
$_SESSION['username'] = $data["username"];
    
$_SESSION['password'] = $data["userpass"];
    
$_SESSION['firstname'] = $data["firstname"];
    
$_SESSION['lastname'] = $data["lastname"]; 
It is setting them fine, I have checked. checklogin.php then redirects the user to member.php by using a header. In member.php I continue the session like this this:
PHP Code:
session_start();
    
$uid $_SESSION['uid'];
    
$username $_SESSION['username'];
    
$password $_SESSION['password'];
    
$firstname $_SESSION['firstname'];
    
$lastname $_SESSION['lastname']; 
But now in member.php the session variables are blank. What am I doing wrong?
Thanks