I'm creating a page where the add_user.php
page is supposed to log you in afterwards
The login.php
page uses the:
$_POST['username']
$_POST['password']
To authenticate and log you in, it also fills out plenty of session variables which I do not want to recalculate
I want the add_user.php
to login after inserting into the database.
Here are the final bits of code that are not performing the function I'm after:
$_SESSION["username"] = $username;
$_SESSION["password"] = $password;
header("location:dashboard.php");
I want to use $username
and $password
and pass them to the login.php
page.