Hi,
when I store data in a variable like:
// inside the login page
$_SESSION['username'] = $username;
$_SESSION['user_id'] = $user_id;
and i reference that SESSION on another page like:
// on the users homepage
$new_variable = $_SESSION['username'];
changes it's value to something different from the database.
OR for example, if i make a new variable called $user_id
// creating a new variable in the users inbox
$user_id = 12312;
it changes the SESSION value to that as well.
Does anyone know where I'm going wrong?
Thank you!