I'm having trouble using the header("location: file.php"
when I'm using session. This is some of the code:
if ($password == $data['password']) {
session_start();
$_SESSION["userID"] = $data['id'];
echo "Password accepted";
header("location: manager.php"
;
}
But that giving me an error msg that says that he can't add header info because it's alredy set at the "session_start" line.
Is there any way to make this work?
Thanks! __________________
Visit my homepage
.: Game universE :.
if ($password == $data['password']) {
session_start();
$_SESSION["userID"] = $data['id'];
echo "Password accepted";
header("location: manager.php"
}
But that giving me an error msg that says that he can't add header info because it's alredy set at the "session_start" line.
Is there any way to make this work?
Thanks! __________________
Visit my homepage
.: Game universE :.