$_SESSION['user_id'] = $user['id']; header("Location: ../user/dashboard.php"); exit;