0 ) { $_SESSION['username'] = $username; $_SESSION['auth'] = "yes"; session_write_close(); header("Location: /user/$username/"); exit(); } else { $error = "

Error: Incorrect username or password.

"; } } ?>